From d3d67168c37bf0d95477c8eb58b6dc24f7e815ad Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 16 Apr 2021 04:09:45 -0400 Subject: Fix bank3.s typo --- bank3.s | 2 +- taipan.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bank3.s b/bank3.s index 229826d..2f7733c 100644 --- a/bank3.s +++ b/bank3.s @@ -145,7 +145,7 @@ code_tail: .out .sprintf("code_tail_size $%x (%d pages)", code_tail_size, (>code_tail_size)+1) .if * > cart_trailer - .fatal "bank7 code too large" + .fatal "bank 3 code too large" .else .out .sprintf("=> %d bytes free in bank 3, at %x", cart_trailer - *, *) .endif diff --git a/taipan.c b/taipan.c index f299091..4392cff 100644 --- a/taipan.c +++ b/taipan.c @@ -964,12 +964,11 @@ void justify_int(unsigned int num) { cprintuint(num); } -void update_guns() { +void update_guns(void) { rvs_on(); gotoxy(31, 1); justify_int(guns); rvs_off(); - // hide_cursor(); } char orders = 0; @@ -1031,14 +1030,14 @@ void plus_or_space(unsigned char b) { # pragma code-name (pop) #endif -/* sea_battle only ever returns 1 to 4. making the - return type a char saved 61 bytes! */ int ships_on_screen[10]; extern char have_ships_on_screen(void); extern void clear_ships_on_screen(void); char have_no_cargo(void); +/* sea_battle only ever returns 1 to 4. making the + return type a char saved 61 bytes! */ char sea_battle(char id, int num_ships) { /* These locals seem to eat too much stack and cause weird behaviour, so they're static now. */ -- cgit v1.2.3