From c66301b3360dfe3e3d122d8036b24ade9292b5c4 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 9 Apr 2019 22:00:48 +0200 Subject: [PATCH] Clean up WitchRechargeOk --- Source/stores.cpp | 8 ++++---- Source/stores.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/stores.cpp b/Source/stores.cpp index d1f03f6fb..16d5d6c0c 100644 --- a/Source/stores.cpp +++ b/Source/stores.cpp @@ -1241,14 +1241,14 @@ void S_StartWSell() // 6A09E4: using guessed type int stextsmax; // 6A6BB8: using guessed type int stextscrl; -BOOLEAN WitchRechargeOk(int i) +BOOL WitchRechargeOk(int i) { - BOOLEAN rv; // al + BOOL rv; - rv = 0; + rv = FALSE; if (plr[myplr].InvList[i]._itype == ITYPE_STAFF && plr[myplr].InvList[i]._iCharges != plr[myplr].InvList[i]._iMaxCharges) { - rv = 1; + rv = TRUE; } return rv; } diff --git a/Source/stores.h b/Source/stores.h index e1e362a2d..435d8aebc 100644 --- a/Source/stores.h +++ b/Source/stores.h @@ -67,7 +67,7 @@ void S_ScrollWBuy(int idx); void S_StartWBuy(); BOOLEAN WitchSellOk(int i); void S_StartWSell(); -BOOLEAN WitchRechargeOk(int i); +BOOL WitchRechargeOk(int i); void AddStoreHoldRecharge(ItemStruct itm, int i); void S_StartWRecharge(); void S_StartNoMoney();