aboutsummaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-05-11 11:31:57 -0400
committerNathan Vance <nathav63@gmail.com>2015-05-11 11:31:57 -0400
commit1fa2976e9fc3797e0438c7efc7cdfb0b0d27ea46 (patch)
treeda409e7aa8b4f7c6fe88beb700b37d044aade6f0 /io.c
parentChanged initial array for pregame (diff)
download7w-1fa2976e9fc3797e0438c7efc7cdfb0b0d27ea46.tar.gz
7w-1fa2976e9fc3797e0438c7efc7cdfb0b0d27ea46.tar.bz2
7w-1fa2976e9fc3797e0438c7efc7cdfb0b0d27ea46.zip
fixed bugs and formatting errors
Diffstat (limited to 'io.c')
-rw-r--r--io.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/io.c b/io.c
index 55c1415..f0dc4a0 100644
--- a/io.c
+++ b/io.c
@@ -157,6 +157,14 @@ int io_printcard(int x, int y, int era, int card, int player)
char* message = cards_specialmessage(era, card);
if(message[0] != '\0')
y = io_printtext(x, y, 28, message);
+
+ int* special = get_special(era, card, player);
+ if(special[2])
+ { //print special (vp, gold)
+ mvprintw(y++, x, "# In your case, produces: #");
+ mvprintw(y++, x, "# %2d victory points #", special[0]);
+ mvprintw(y++, x, "# %2d gold #", special[1]);
+ }
int* coupons = cards_getcoupons(era, card);
if(coupons[1] || coupons[3])
@@ -178,14 +186,6 @@ int io_printcard(int x, int y, int era, int card, int player)
io_printname(x, y++, coupons[2], coupons[3]);
}
- int* special = get_special(era, card, player);
- if(special[0] || special[1])
- { //print special (vp, gold)
- mvprintw(y++, x, "# In your case, produces: #");
- mvprintw(y++, x, "# %2d victory points #", special[0]);
- mvprintw(y++, x, "# %2d gold #", special[1]);
- }
-
io_printborder(x, y, 28);
return y;
}
bgstack15