diff options
author | B. Watson <yalhcru@gmail.com> | 2021-04-17 16:18:44 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-04-17 16:18:44 -0400 |
commit | 231104ed9daf3903db0eedb7c9444c36fb63ee03 (patch) | |
tree | 4e1a121e00ce028c578e252ed62961015870158a | |
parent | f822c52838af6884792f3a1f16aad29f5174a913 (diff) | |
download | taipan-231104ed9daf3903db0eedb7c9444c36fb63ee03.tar.gz |
Save 10 bytes
-rw-r--r-- | taipan.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3081,7 +3081,7 @@ void name_firm(void) { #ifdef CART_TARGET # pragma code-name (push, "HIGHCODE") #endif -char what_do_you_wish_me_to(char buy_or_sell) { +char what_do_you_wish_me_to(char *buy_or_sell) { gotox0y22(); clrtobot(); // cputs("What "); @@ -3089,7 +3089,7 @@ char what_do_you_wish_me_to(char buy_or_sell) { do_you_wish(); // cputs("me to "); print_msg(M_me_to); - cputs(buy_or_sell ? "buy" : "sell"); + cputs(buy_or_sell); cprint_taipan_prompt(); return get_item(0); } @@ -3101,7 +3101,7 @@ void buy(void) { int choice; unsigned long afford, amount; - choice = what_do_you_wish_me_to(1); + choice = what_do_you_wish_me_to("buy"); for (;;) { gotoxy(31, 21); @@ -3160,7 +3160,7 @@ void sell(void) { int choice; unsigned long amount; - choice = what_do_you_wish_me_to(0); + choice = what_do_you_wish_me_to("sell"); for (;;) { gotox0y22(); |