From 231104ed9daf3903db0eedb7c9444c36fb63ee03 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 17 Apr 2021 16:18:44 -0400 Subject: Save 10 bytes --- taipan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'taipan.c') 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(); -- cgit v1.2.3