aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
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