From 705c17dc63b9432f5c2a6258f3c57d174c8258cc Mon Sep 17 00:00:00 2001 From: qndel Date: Sun, 8 Sep 2019 01:19:57 +0200 Subject: [PATCH] [hellfire] RndLocOk bin exact --- Source/objects.cpp | 4 ++++ Source/objects.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Source/objects.cpp b/Source/objects.cpp index e7946e0f6..94b6166f8 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -122,7 +122,11 @@ void FreeObjectGFX() numobjfiles = 0; } +#ifdef HELLFIRE +BOOLEAN RndLocOk(int xp, int yp) +#else BOOL RndLocOk(int xp, int yp) +#endif { if (dMonster[xp][yp]) return FALSE; diff --git a/Source/objects.h b/Source/objects.h index 9c2c10f2b..a5bf5005c 100644 --- a/Source/objects.h +++ b/Source/objects.h @@ -16,7 +16,11 @@ extern int numobjfiles; void InitObjectGFX(); void FreeObjectGFX(); +#ifdef HELLFIRE +BOOLEAN RndLocOk(int xp, int yp); +#else BOOL RndLocOk(int xp, int yp); +#endif void InitRndLocObj(int min, int max, int objtype); void InitRndLocBigObj(int min, int max, int objtype); void InitRndLocObj5x5(int min, int max, int objtype);