aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-04-02 13:10:41 -0400
committerNathan Vance <nathav63@gmail.com>2015-04-02 13:10:41 -0400
commitc9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f (patch)
tree3f8a1b0daf0e34b6e072d0f7e669fb5d3ba92b56 /view.c
parentAdded more special actions (diff)
download7w-c9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f.tar.gz
7w-c9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f.tar.bz2
7w-c9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f.zip
Halicarnassus bug fixes
Diffstat (limited to 'view.c')
-rw-r--r--view.c8
1 files changed, 4 insertions, 4 deletions
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);
bgstack15