From 5250d019cbc55c6ffbf2354db1b43f432e2ee2ae Mon Sep 17 00:00:00 2001 From: qndel Date: Tue, 15 Oct 2019 21:45:28 +0200 Subject: [PATCH] [hellfire] PlaceMonster bin exact (#1808) --- Source/monster.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/monster.cpp b/Source/monster.cpp index 987ad0c34..77742eecc 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -635,6 +635,18 @@ void PlaceMonster(int i, int mtype, int x, int y) { int rd; +#ifdef HELLFIRE + if (Monsters[mtype].mtype == MT_NAKRUL) { + for (int j = 0; j < nummonsters; j++) { + if (monster[j]._mMTidx == mtype) { + return; + } + if (monster[j].MType->mtype == MT_NAKRUL) { + return; + } + } + } +#endif dMonster[x][y] = i + 1; rd = random(90, 8);