From d1d3262b5727f9ffda33aa7bcd3eaf5bcf2d7d40 Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Sun, 22 Feb 2015 22:06:42 -0500 Subject: Added basic purchasing with definites --- view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'view.c') 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); } } -- cgit