Browse Source

fix compiling (#2166)

pull/944/head
qndel 5 years ago committed by GitHub
parent
commit
a597e6d0d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/items.cpp
  2. 2
      Source/monster.cpp

2
Source/items.cpp

@ -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);

2
Source/monster.cpp

@ -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) {

Loading…
Cancel
Save