From 4761a206a385a56ab77541c8b40b2fab774a7518 Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Mon, 2 Sep 2024 15:06:07 -0400 Subject: [PATCH] vmc matching on J --- src/d/actor/d_a_obj_vmc.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/d/actor/d_a_obj_vmc.cpp b/src/d/actor/d_a_obj_vmc.cpp index 9cefea7e..1185253a 100644 --- a/src/d/actor/d_a_obj_vmc.cpp +++ b/src/d/actor/d_a_obj_vmc.cpp @@ -270,10 +270,18 @@ bool daObjVmc::Act_c::_execute() { cXyz dist = dComIfGp_getLinkPlayer()->current.pos - current.pos; if (!mLinkRangeCheck) { +#if VERSION == VERSION_JPN + if (dist.absXZ() > 110.0f) +#else if (dist.absXZ() > 110.0f || dist.y < -500.0f || dist.y > 500.0f) +#endif mLinkRangeCheck = true; } else { +#if VERSION == VERSION_JPN + if (dist.absXZ() < 100.0f) +#else if (dist.absXZ() < 100.0f && dist.y > -490.0f && dist.y < 490.0f) +#endif mLinkRangeCheck = false; }