aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-02-22 22:06:42 -0500
committerNathan Vance <nathav63@gmail.com>2015-02-22 22:06:42 -0500
commitd1d3262b5727f9ffda33aa7bcd3eaf5bcf2d7d40 (patch)
treeb7b93c7c5ba59afdd0861f54610073326f5594e1 /view.c
parentMajor view improvements (diff)
download7w-d1d3262b5727f9ffda33aa7bcd3eaf5bcf2d7d40.tar.gz
7w-d1d3262b5727f9ffda33aa7bcd3eaf5bcf2d7d40.tar.bz2
7w-d1d3262b5727f9ffda33aa7bcd3eaf5bcf2d7d40.zip
Added basic purchasing with definites
Diffstat (limited to 'view.c')
-rw-r--r--view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/view.c b/view.c
index 874d43f..68337b4 100644
--- a/view.c
+++ b/view.c
@@ -10,11 +10,11 @@ void io_printhand(int x, int y, int player, int cursor);
void view_printwonders(int focus, int cursor, int player)
{
-int num = data_numplayers();
- int x, y, i, dir;
+ int num = data_numplayers();
+ int x, y, i, dir, p;
x = y = 0;
for(i = 0; i < num; i++) {
- int p = (player+i)%num;
+ p = (player+i)%num;
dir = 0;
if(i == 1) dir = 1;
if(i == num-1) dir = 2;
@@ -31,7 +31,7 @@ void view_refresh(int focus, int cursor, int player)
view_printwonders(player, -1, player);
io_printhand(61, 0, player, cursor);
} else {
- view_printwonders(focus, cursor, player);
+ view_printwonders((focus+player)%data_numplayers(), cursor, player);
io_printhand(61, 0, player, -1);
}
}
bgstack15