Browse Source

Eliminate min diff in PlaceUniqueMonst.

Fixes #259
pull/93/head
Sergey Semushin 7 years ago committed by Anders Jenbo
parent
commit
5a4582b225
  1. 11
      Source/monster.cpp

11
Source/monster.cpp

@ -816,17 +816,20 @@ void PlaceUniqueMonst(int uniqindex, int miniontype, int packsize)
int count2;
char filestr[64];
BOOL zharflag, done;
UniqMonstStruct *Uniq;
MonsterStruct *Monst;
int count;
UniqMonstStruct *Uniq = &UniqMonst[uniqindex];
MonsterStruct *Monst = &monster[nummonsters];
int count = 0;
Monst = monster + nummonsters;
count = 0;
Uniq = UniqMonst + uniqindex;
if ((uniquetrans + 19) << 8 >= LIGHTSIZE) {
return;
}
for (uniqtype = 0; uniqtype < nummtypes; uniqtype++) {
if (Monsters[uniqtype].mtype == Uniq->mtype) {
if (Monsters[uniqtype].mtype == UniqMonst[uniqindex].mtype) {
break;
}
}

Loading…
Cancel
Save