diff options
Diffstat (limited to 'taipan.c')
-rw-r--r-- | taipan.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -117,6 +117,9 @@ extern void clrtoeol(void); /* print 'count' spaces: */ extern void __fastcall__ cspaces(unsigned char count); +/* our own clr_screen(), don't use conio's clrscr() */ +extern void clr_screen(void); + /* avoid calling/linking conio's revers() function. This saves us 49 bytes (2 per call to revers(), plus these functions are smaller than conio's revers() because they return void) */ @@ -885,7 +888,7 @@ int sea_battle(int id, int num_ships) { ships_on_screen[i] = 0; } - clrscr(); + clr_screen(); // cursor(0); /* the static part of "we have N guns" display, gets printed @@ -1354,7 +1357,7 @@ int sea_battle(int id, int num_ships) { } if(orders == 1) { - // clrscr(); + // clr_screen(); fight_stats(num_ships, orders); gotoxy(0, 3); clrtoeol(); @@ -1411,7 +1414,7 @@ unsigned long get_num(void) { void cash_or_guns(void) { char choice; - clrscr(); + clr_screen(); cprint_Do_you_want(); cputs("to start . . .\r\n\n"); cputs(" 1) With cash (and a debt)\r\n\n"); @@ -1820,7 +1823,7 @@ void final_stats(void) port_stat_dirty = 1; - clrscr(); + clr_screen(); cputs("Your final status:\r\n\n" "Net cash: "); #ifdef BIGNUM @@ -2812,7 +2815,7 @@ void name_firm(void) { unsigned char input, firmlen = 0; unsigned int randseed; - clrscr(); + clr_screen(); /* old version, readable, but compiles to 78 byte more than the new version below. @@ -3146,7 +3149,7 @@ int main(void) { #ifdef MCHENRY_TEST { while(1) { - clrscr(); + clr_screen(); cputs("year? "); year = get_num(); crlf(); |