diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index b0979ede..1a9023ec 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -4685,10 +4685,10 @@ void entityclass::entitycollisioncheck() { //ok; only check the actual collision if they're in a close proximity temp = entities[i].yp - entities[j].yp; - if (temp < 30 || temp > -30) + if (temp > -30 && temp < 30) { temp = entities[i].xp - entities[j].xp; - if (temp < 30 || temp > -30) + if (temp > -30 && temp < 30) { if (entitycollide(i, j)) entities[j].state = entities[j].onentity; } diff --git a/mobile_version/src/entityclass.as b/mobile_version/src/entityclass.as index a3ce8188..d1deaed8 100644 --- a/mobile_version/src/entityclass.as +++ b/mobile_version/src/entityclass.as @@ -3851,9 +3851,9 @@ if (entities[j].onentity > 0) { //ok; only check the actual collision if they're in a close proximity temp = entities[i].yp - entities[j].yp; - if (temp < 30 || temp > -30) { + if (temp > -30 && temp < 30) { temp = entities[i].xp - entities[j].xp; - if (temp < 30 || temp > -30) { + if (temp > -30 && temp < 30) { if (entitycollide(i, j)) entities[j].state = entities[j].onentity; } }