diff options
author | B. Watson <yalhcru@gmail.com> | 2016-01-07 03:59:23 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-01-07 03:59:23 -0500 |
commit | 23fd09c5c464505c7c9ceb801fceb907446cd1ab (patch) | |
tree | 856536283f2929416e8fcbac098cee6b7d9e6289 | |
parent | 7f5527584dabf16abe8f0bccaf3aebd570eeca69 (diff) | |
download | taipan-23fd09c5c464505c7c9ceb801fceb907446cd1ab.tar.gz |
fix throw-cargo display
-rw-r--r-- | taipan.c | 27 |
1 files changed, 17 insertions, 10 deletions
@@ -9,7 +9,7 @@ /* define this for testing sea_battle(). it causes a pirate attack every time you leave port. Don't leave defined for a release!! */ -// #define COMBAT_TEST +#define COMBAT_TEST /* define this to show internals of damage calculation */ // #define DAMAGE_TEST @@ -749,26 +749,26 @@ int sea_battle(int id, int num_ships) { amount = 0; total = 0; - gotoxy(0, 18); + gotoxy(0, 3); cputs("You have the following on board, Taipan:"); - gotoxy(4, 19); + gotoxy(4, 4); cputs(item[0]); cputs(": "); cprintulong(hold_[0]); - gotoxy(24, 19); + gotoxy(24, 4); cputs(item[1]); cputs(": "); cprintulong(hold_[1]); - gotoxy(5, 20); + gotoxy(5, 5); cputs(item[2]); cputs(": "); cprintulong(hold_[2]); - gotoxy(21, 20); + gotoxy(21, 5); cputs(item[3]); cputs(": "); cprintulong(hold_[3]); - gotoxy(0, 3); + gotoxy(0, 6); clrtoeol(); cputs("What shall I throw overboard, Taipan? "); @@ -797,7 +797,7 @@ int sea_battle(int id, int num_ships) { */ if(choice < 4) { - gotoxy(0, 3); + gotoxy(0, 6); clrtoeol(); cputs("How much, Taipan? "); @@ -811,6 +811,13 @@ int sea_battle(int id, int num_ships) { total = hold_[0] + hold_[1] + hold_[2] + hold_[3]; } + gotoxy(0, 4); + clrtoeol(); + gotoxy(0, 5); + clrtoeol(); + gotoxy(0, 6); + clrtoeol(); + if(total > 0) { gotoxy(0, 3); clrtoeol(); @@ -835,8 +842,8 @@ int sea_battle(int id, int num_ships) { gotoxy(0, 3); clrtoeol(); cputs("There's nothing there, Taipan!"); - gotoxy(0, 18); - clrtobot(); + // gotoxy(0, 18); + // clrtobot(); timed_getch(TMOUT_3S); } |