aboutsummaryrefslogtreecommitdiff
path: root/taipan.c
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-01-15 17:49:04 -0500
committerB. Watson <yalhcru@gmail.com>2016-01-15 17:49:04 -0500
commitc4a066ea93d96883c9098730bc955cc7eabd0d81 (patch)
treee2b14abaac946d65db0fab30207fe475cc705d1a /taipan.c
parentad7bbde98916040e8b527068ead084d009c899d4 (diff)
downloadtaipan-c4a066ea93d96883c9098730bc955cc7eabd0d81.tar.gz
fix bug that kills you after escaping li yuen pirates
Diffstat (limited to 'taipan.c')
-rw-r--r--taipan.c10
1 files changed, 9 insertions, 1 deletions
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" */
}
}