diff options
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); |