From c9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Thu, 2 Apr 2015 13:10:41 -0400 Subject: Halicarnassus bug fixes --- view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'view.c') diff --git a/view.c b/view.c index 88b8901..82dec18 100644 --- a/view.c +++ b/view.c @@ -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); -- cgit