diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-04-02 13:10:41 -0400 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-04-02 13:10:41 -0400 |
commit | c9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f (patch) | |
tree | 3f8a1b0daf0e34b6e072d0f7e669fb5d3ba92b56 /view.c | |
parent | Added more special actions (diff) | |
download | 7w-c9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f.tar.gz 7w-c9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f.tar.bz2 7w-c9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f.zip |
Halicarnassus bug fixes
Diffstat (limited to 'view.c')
-rw-r--r-- | view.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2,7 +2,7 @@ int* print_wonder(int x, int y, int player, int cursor); int print_wondersmall(int x, int y, int player, int selected, int dir); -int io_printhand(int x, int y, int player, int cursor); +int io_printhand(int x, int y, int player, int cursor, int mode); int io_printcard(int x, int y, int wonder, int stage, int player); void io_clearscreen(); int data_numplayers(); @@ -29,17 +29,17 @@ int* view_printwonders(int focus, int cursor, int player) return ret; } -int view_refresh(int focus, int cursor, int player) +int view_refresh(int focus, int cursor, int player, int mode) //mode 0 is normal, 1 is discard search { int ret; int *card; io_clearscreen(); if(focus == data_numplayers()) { card = view_printwonders(player, -1, player); - ret = io_printhand(61, 0, player, cursor); + ret = io_printhand(61, 0, player, cursor, mode); } else { card = view_printwonders((focus+player)%data_numplayers(), cursor, player); - ret = io_printhand(61, 0, player, -1); + ret = io_printhand(61, 0, player, -1, mode); } if(card[0] != -1) ret = io_printcard(61, ret-1, card[0], card[1], player); |