aboutsummaryrefslogtreecommitdiff
path: root/taipan.c
diff options
context:
space:
mode:
Diffstat (limited to 'taipan.c')
-rw-r--r--taipan.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/taipan.c b/taipan.c
index fbdf6ff..616a928 100644
--- a/taipan.c
+++ b/taipan.c
@@ -200,6 +200,14 @@ extern void redraw_port_stat(void);
/* messages.c is generated by messages.pl */
#include "messages.c"
+#ifdef GAME_HELP
+# include "helpmsgs.h"
+# include "helpmsgs.c"
+#else
+# define SET_HELP(x)
+# define CLEAR_HELP
+#endif
+
extern void __fastcall__ print_msg(const char *msg);
/* old version of this used to just 'return randl()%clamp'.
@@ -1549,6 +1557,7 @@ unsigned long get_num(void) {
unsigned char count = 0;
char input;
+ SET_HELP(get_amount_help);
while((input = numgetc()) != '\n') {
if(input == BKSP) {
if(!count) continue;
@@ -1575,6 +1584,7 @@ unsigned long get_num(void) {
}
}
+ CLEAR_HELP;
num_buf[count] = '\0';
return strtonum(num_buf);
}