aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-04-17 16:18:44 -0400
committerB. Watson <yalhcru@gmail.com>2021-04-17 16:18:44 -0400
commit231104ed9daf3903db0eedb7c9444c36fb63ee03 (patch)
tree4e1a121e00ce028c578e252ed62961015870158a
parentf822c52838af6884792f3a1f16aad29f5174a913 (diff)
downloadtaipan-231104ed9daf3903db0eedb7c9444c36fb63ee03.tar.gz
Save 10 bytes
-rw-r--r--taipan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/taipan.c b/taipan.c
index 4392cff..69a7a84 100644
--- a/taipan.c
+++ b/taipan.c
@@ -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();