Skip to content

Commit

Permalink
fix compiling (diasurgical#2166)
Browse files Browse the repository at this point in the history
  • Loading branch information
qndel authored Dec 4, 2020
1 parent 38dbcf7 commit a597e6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5212,7 +5212,7 @@ void SpawnBoy(int lvl)
{
int itype;

if (boylevel<lvl> > 1 || boyitem._itype == ITYPE_NONE) {
if (boylevel < (lvl >> 1) || boyitem._itype == ITYPE_NONE) {
do {
item[0]._iSeed = GetRndSeed();
SetRndSeed(item[0]._iSeed);
Expand Down
2 changes: 1 addition & 1 deletion Source/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4365,7 +4365,7 @@ void MAI_Garg(int i)
return;
}

if (Monst->_mhitpoints<Monst->_mmaxhp> > 1 && !(Monst->_mFlags & MFLAG_NOHEAL))
if (Monst->_mhitpoints < (Monst->_mmaxhp >> 1) && !(Monst->_mFlags & MFLAG_NOHEAL))
Monst->_mgoal = MGOAL_RETREAT;
if (Monst->_mgoal == MGOAL_RETREAT) {
if (abs(dx) >= Monst->_mint + 2 || abs(dy) >= Monst->_mint + 2) {
Expand Down

0 comments on commit a597e6d

Please sign in to comment.