diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-02-22 22:06:42 -0500 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-02-22 22:06:42 -0500 |
commit | d1d3262b5727f9ffda33aa7bcd3eaf5bcf2d7d40 (patch) | |
tree | b7b93c7c5ba59afdd0861f54610073326f5594e1 /view.c | |
parent | Major view improvements (diff) | |
download | 7w-d1d3262b5727f9ffda33aa7bcd3eaf5bcf2d7d40.tar.gz 7w-d1d3262b5727f9ffda33aa7bcd3eaf5bcf2d7d40.tar.bz2 7w-d1d3262b5727f9ffda33aa7bcd3eaf5bcf2d7d40.zip |
Added basic purchasing with definites
Diffstat (limited to 'view.c')
-rw-r--r-- | view.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } } |