From d48cd0f28f4174b084461d8fbb43881b721cdc32 Mon Sep 17 00:00:00 2001 From: NepDisk <16447892+NepDisk@users.noreply.github.com> Date: Sun, 29 Sep 2024 16:20:50 -0400 Subject: [PATCH] Apply offroad terrain particle based on offroad check rather then boostpower this should prevent issues with boostpower related scripts spawning errornous offroad dust --- src/k_terrain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/k_terrain.c b/src/k_terrain.c index 00c1fe972..01f6a44d3 100644 --- a/src/k_terrain.c +++ b/src/k_terrain.c @@ -1064,7 +1064,8 @@ offroadhandle: } // - Being affected by offroad - if (mo->player->boostpower >= FRACUNIT) + // Using acutal offroad check here to prevent lua boostpower modifications from spawning the offroad particles - Nep + if (!(K_ApplyOffroad(mo->player) && mo->player->offroad > 0)) { return; }