diff options
author | B. Watson <yalhcru@gmail.com> | 2016-01-15 17:49:04 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-01-15 17:49:04 -0500 |
commit | c4a066ea93d96883c9098730bc955cc7eabd0d81 (patch) | |
tree | e2b14abaac946d65db0fab30207fe475cc705d1a | |
parent | ad7bbde98916040e8b527068ead084d009c899d4 (diff) | |
download | taipan-c4a066ea93d96883c9098730bc955cc7eabd0d81.tar.gz |
fix bug that kills you after escaping li yuen pirates
-rw-r--r-- | taipan.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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" */ } } |