From c4a066ea93d96883c9098730bc955cc7eabd0d81 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 15 Jan 2016 17:49:04 -0500 Subject: fix bug that kills you after escaping li yuen pirates --- taipan.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/taipan.c b/taipan.c index fd471e8..33c7852 100644 --- a/taipan.c +++ b/taipan.c @@ -504,6 +504,9 @@ void new_gun(void) One minor difference between this and fancy_numbers() is that we print "1.10 Million" rather than "1.1 Million" (extra zero). I don't think anyone's going to complain. + + BUG here, 2.09 million is printed as 2.9 million (leading 0 + digit is dropped) */ void cprintfancy_ctr(unsigned long num, unsigned char center) { char mil = 1; @@ -1950,7 +1953,12 @@ void quit(void) under_attack_sound(); timed_getch(TMOUT_3S); - sea_battle(LI_YUEN, num_ships); + /* WTF, the original code reads: + sea_battle(LI_YUEN, num_ships); + ...which seems to mean you die if you succeed in + running away from li yuen's pirates... */ + result = sea_battle(LI_YUEN, num_ships); + gotoxy(0,23); /* to avoid disappearing U in "In use" */ } } -- cgit v1.2.3