aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-05-21 04:12:08 -0400
committerB. Watson <yalhcru@gmail.com>2021-05-21 04:12:08 -0400
commit94dedf208eb60127e19e62445b0609eb6274d1b1 (patch)
tree0330c467c8b2954cafa88667e153d583998651e4
parent232a6f9649997f58997580580f1596a1e8fe3669 (diff)
downloadtaipan-94dedf208eb60127e19e62445b0609eb6274d1b1.tar.gz
Save 64 bytes (now 9027)
-rw-r--r--taipan.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/taipan.c b/taipan.c
index b365edf..ba5a239 100644
--- a/taipan.c
+++ b/taipan.c
@@ -1126,10 +1126,7 @@ char sea_battle(char id, int num_ships) {
booty = 0L;
}
- for(i = 0; i <= 9; i++) {
- ships_on_screen[i] = 0;
- }
-
+ clear_ships_on_screen();
clr_screen();
/* the static part of "we have N guns" display, gets printed