Clean ups

This commit is contained in:
Anders Jenbo 2021-01-07 04:50:31 +01:00
commit c7b32ec4e4
6 changed files with 14 additions and 9 deletions

View file

@ -3514,7 +3514,7 @@ void OperateShrine(int pnum, int i, int sType)
DWORD lv, t;
int xx, yy;
int v1, v2, v3, v4;
unsigned __int64 spell;
unsigned __int64 spell, spells;
if (dropGoldFlag) {
dropGoldFlag = FALSE;
@ -3745,8 +3745,13 @@ void OperateShrine(int pnum, int i, int sType)
return;
cnt = 0;
spell = 1;
spells = plr[pnum]._pMemSpells;
for (j = 0; j < MAX_SPELLS; j++) {
#ifdef HELLFIRE
if (spell & plr[pnum]._pMemSpells)
#else
if (spell & spells)
#endif
cnt++;
spell <<= 1;
}