aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--taipan.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/taipan.c b/taipan.c
index ec96631..75fdea4 100644
--- a/taipan.c
+++ b/taipan.c
@@ -15,7 +15,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
@@ -31,6 +31,11 @@
/* define this to start the game in a 99% damaged ship */
// #define ALMOST_DEAD
+/* define this to end the game after 1 turn of gameplay. used
+ for testing whether cc65's exit(0) returns to DOS correctly.
+ use with "make testatr" target. */
+// #define EARLY_WITHDRAWAL
+
/**** atari-specific stuff */
/* values returned by cgetc() for backspace & enter keys */
@@ -1950,6 +1955,10 @@ void quit(void)
cputs("...");
timed_getch(TMOUT_3S);
+#ifdef EARLY_WITHDRAWAL
+ exit(0);
+#endif
+
return;
}