aboutsummaryrefslogtreecommitdiff
path: root/special_actions.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 /special_actions.c
parentAdded more special actions (diff)
download7w-c9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f.tar.gz
7w-c9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f.tar.bz2
7w-c9bec9ecc7dc8d0ccc8b0331b4cdf2bd8c77011f.zip
Halicarnassus bug fixes
Diffstat (limited to 'special_actions.c')
-rw-r--r--special_actions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/special_actions.c b/special_actions.c
index fa8d013..babf6e2 100644
--- a/special_actions.c
+++ b/special_actions.c
@@ -10,9 +10,11 @@ int print_cards(int x, int y, int *cards, int cursor);
int io_printtext(int xorigin, int y, int width, char* text);
void io_printborder(int x, int y, int width);
int io_getkey();
+int io_printcard(int x, int y, int wonder, int stage, int player);
void posthelp();
int data_isai(int p);
void data_setfreebuild(int p);
+int view_refresh(int focus, int cursor, int player, int mode);
void Halicarnassus(int player)
{
@@ -26,10 +28,8 @@ void Halicarnassus(int player)
int bottom = 0;
while(discards[numcards++] != -1 && numcards < 50);
numcards /= 2;
- io_printborder(x, y++, 28);
- y = io_printtext(x, y, 28, " Discards");
while(1) {
- bottom = print_cards(x, y, discards, cursor);
+ view_refresh(focus, cursor, player, 1);
switch(io_getkey()) {
case UP: cursor--;
break;
bgstack15