aboutsummaryrefslogtreecommitdiff
path: root/taipan.c
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-02-07 19:30:26 -0500
committerB. Watson <yalhcru@gmail.com>2016-02-07 19:30:26 -0500
commit3505ea037d50c3d3fc52b57037f0020072b6a75e (patch)
tree8f444c0a2f197ee00afd730664136fd480aeb5c0 /taipan.c
parent55beabbdf3c2485c44cd3d8ecd1022ca1379bd65 (diff)
downloadtaipan-3505ea037d50c3d3fc52b57037f0020072b6a75e.tar.gz
save another 24 bytes, now 4626 free
Diffstat (limited to 'taipan.c')
-rw-r--r--taipan.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/taipan.c b/taipan.c
index 6621885..9cc1916 100644
--- a/taipan.c
+++ b/taipan.c
@@ -731,25 +731,35 @@ void update_guns() {
}
void fight_stats(int ships, int orders) {
- // cursor(0);
gotoxy(0, 0);
justify_int(ships);
cputs(" ship");
if(ships != 1) cputc_s();
- // cputs(" attacking, Taipan! \r\n");
cputs(" attacking");
cprint_taipan_bang();
cspace();
crlf();
cputs("Your orders are: ");
+ cblank(11);
+ switch(orders) {
+ case 1: cputs("Fight"); break;
+ case 2: cputs("Run"); break;
+ case 3: cputs("Throw Cargo"); break;
+ default: break;
+ }
+
+ /*
+ // switch() saves 15 bytes over this:
if(orders == 1)
- cputs("Fight ");
+ cputs("Fight");
else if(orders == 2)
- cputs("Run ");
+ cputs("Run");
else if(orders == 3)
cputs("Throw Cargo");
+ */
+
hide_cursor();
}