aboutsummaryrefslogtreecommitdiff
path: root/taipan.c
diff options
context:
space:
mode:
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();
}