From 23fd09c5c464505c7c9ceb801fceb907446cd1ab Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 7 Jan 2016 03:59:23 -0500 Subject: fix throw-cargo display --- taipan.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'taipan.c') diff --git a/taipan.c b/taipan.c index 4ac8488..74e586a 100644 --- a/taipan.c +++ b/taipan.c @@ -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); } -- cgit v1.2.3