Browse Source

Merge pull request #886 from AJenbo/WitchRechargeOk

Clean up WitchRechargeOk
pull/88/head
Robin Eklind 7 years ago committed by GitHub
parent
commit
8609fa2ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Source/stores.cpp
  2. 2
      Source/stores.h

8
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;
}

2
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();

Loading…
Cancel
Save