diff options
Diffstat (limited to 'taipan.c')
-rw-r--r-- | taipan.c | 32 |
1 files changed, 9 insertions, 23 deletions
@@ -372,7 +372,7 @@ char *num_buf = (char *) 0x600; // char *item[] = { "Opium", "Silk", "Arms", "General Cargo" }; const char * const item[] = { M_opium, M_silk, M_arms, M_gen_cargo }; -extern void __fastcall__ print_item(char item); +extern void __fastcall__ print_item(char item); // textdecomp.s /* const char *location[] = { "At sea", "Hong Kong", "Shanghai", "Nagasaki", @@ -383,21 +383,9 @@ const char * const location[] = { M_at_sea, M_hong_kong, M_shanghai, M_nagasaki, M_saigon, M_manila, M_singapore, M_batavia }; -extern void __fastcall__ print_location(char loc); - -// inverse "Jan\0Feb\0Mar\0Apr\0May\0Jun\0Jul\0Aug\0Sep\0Oct\0Nov\0Dec\0"; -const char * const months = "\xca\xe1\xee\0" - "\xc6\xe5\xe2\0" - "\xcd\xe1\xf2\0" - "\xc1\xf0\xf2\0" - "\xcd\xe1\xf9\0" - "\xca\xf5\xee\0" - "\xca\xf5\xec\0" - "\xc1\xf5\xe7\0" - "\xd3\xe5\xf0\0" - "\xcf\xe3\xf4\0" - "\xce\xef\xf6\0" - "\xc4\xe5\xe3\0"; +extern void __fastcall__ print_location(char loc); // textdecomp.s + +extern void __fastcall__ print_month(void); // console.s const char * const st[] = { "\xc3\xf2\xe9\xf4\xe9\xe3\xe1\xec", // inverse "Critical" @@ -408,10 +396,7 @@ const char * const st[] = { "Perfect" }; -/* -char *st[] = { "Critical", " Poor", " Fair", - " Good", " Prime", "Perfect" }; - */ +extern void __fastcall__ print_status_desc(char s); // console.s #ifdef BIGNUM bignum(bank) = BIG_0; @@ -1099,7 +1084,7 @@ char sea_battle(char id, int num_ships) { // cputs("Current seaworthiness: "); print_msg(M_cur_seaworth); - cputs(st[status / 20]); + print_status_desc(status); cputs(" ("); cprintuchar(status); cputs("%)"); @@ -1730,7 +1715,8 @@ void port_stats(void) { } gotoxy(32, 3); - cputs(months + 4 * (month - 1)); + // cputs(months + 4 * (month - 1)); + print_month(); cspace(); cprintuint(year); @@ -1748,7 +1734,7 @@ void port_stats(void) { gotoxy(29, 12); clrtoeol(); - cputs(st[status / 20]); + print_status_desc(status); cputc(':'); cprintuint(status); |