diff options
author | B. Watson <yalhcru@gmail.com> | 2021-04-26 15:37:02 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-04-26 15:37:02 -0400 |
commit | 5faf0c949468cf72d1dfd0e52369ab2d26760fd7 (patch) | |
tree | 9033b891b1dbe50e5b91d7f281e0e78a3fdebe10 /taipan.c | |
parent | e16403c5a93e02c8c85ea3cd6de64798235a3ae5 (diff) | |
download | taipan-5faf0c949468cf72d1dfd0e52369ab2d26760fd7.tar.gz |
Initial POC of in-game help
Diffstat (limited to 'taipan.c')
-rw-r--r-- | taipan.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); } |