diff options
author | aap <aap@papnet.eu> | 2019-07-16 19:48:50 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-16 19:48:50 +0200 |
commit | 36f3a517f9664415b07a4aa537db22159b67a8f2 (patch) | |
tree | 967839bbeee586f4f74cbfd630ed9118ad9d84f2 /src/core | |
parent | fixed merge (diff) | |
download | re3-36f3a517f9664415b07a4aa537db22159b67a8f2.tar re3-36f3a517f9664415b07a4aa537db22159b67a8f2.tar.gz re3-36f3a517f9664415b07a4aa537db22159b67a8f2.tar.bz2 re3-36f3a517f9664415b07a4aa537db22159b67a8f2.tar.lz re3-36f3a517f9664415b07a4aa537db22159b67a8f2.tar.xz re3-36f3a517f9664415b07a4aa537db22159b67a8f2.tar.zst re3-36f3a517f9664415b07a4aa537db22159b67a8f2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/World.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp index e8fc54a2..829a64d4 100644 --- a/src/core/World.cpp +++ b/src/core/World.cpp @@ -607,12 +607,12 @@ CWorld::FindObjectsInRange(CVector ¢re, float distance, bool ignoreZ, short minY = 0; int maxX = GetSectorIndexX(centre.x + distance); - if (maxX >= 100) - maxX = 100; + if (maxX >= NUMSECTORS_X) + maxX = NUMSECTORS_X; int maxY = GetSectorIndexY(centre.y + distance); - if (maxY >= 100) - maxY = 100; + if (maxY >= NUMSECTORS_Y) + maxY = NUMSECTORS_Y; AdvanceCurrentScanCode(); @@ -658,12 +658,12 @@ CWorld::TestSphereAgainstWorld(CVector centre, float distance, CEntity* entityTo minY = 0; int maxX = GetSectorIndexX(centre.x + distance); - if (maxX >= 100) - maxX = 100; + if (maxX >= NUMSECTORS_X) + maxX = NUMSECTORS_X; int maxY = GetSectorIndexY(centre.y + distance); - if (maxY >= 100) - maxY = 100; + if (maxY >= NUMSECTORS_Y) + maxY = NUMSECTORS_Y; AdvanceCurrentScanCode(); |