aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-04-16 04:09:45 -0400
committerB. Watson <yalhcru@gmail.com>2021-04-16 04:09:45 -0400
commitd3d67168c37bf0d95477c8eb58b6dc24f7e815ad (patch)
tree783f0cf9571ac1f2e758491555bb32c2fee4d6c8
parentae5f5a198af08539ee24a78be2a6bcb8b5956a26 (diff)
downloadtaipan-d3d67168c37bf0d95477c8eb58b6dc24f7e815ad.tar.gz
Fix bank3.s typo
-rw-r--r--bank3.s2
-rw-r--r--taipan.c7
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. */