From cddf486398e154b1c89e496945d5a55f3f9e99b6 Mon Sep 17 00:00:00 2001 From: stm <14291421+stephanmeesters@users.noreply.github.com> Date: Wed, 22 Jul 2026 22:10:30 +0200 Subject: [PATCH 1/2] bugfix(fxlist): Fix unreliable terrain layer selection of particles using CreateAtGroundHeight --- Core/GameEngine/Source/GameClient/FXList.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/GameEngine/Source/GameClient/FXList.cpp b/Core/GameEngine/Source/GameClient/FXList.cpp index a9f630638fd..cafd5facfbc 100644 --- a/Core/GameEngine/Source/GameClient/FXList.cpp +++ b/Core/GameEngine/Source/GameClient/FXList.cpp @@ -614,6 +614,7 @@ class ParticleSystemFXNugget : public FXNugget newPos.x = primary->x + offset.x + radius * cos(angle); newPos.y = primary->y + offset.y + radius * sin(angle); + newPos.z = primary->z + offset.z; if( m_createAtGroundHeight && TheTerrainLogic ) { //old way: From 11ddc42b2321727ce1be16a1728d331fcb2182d0 Mon Sep 17 00:00:00 2001 From: stm <14291421+stephanmeesters@users.noreply.github.com> Date: Thu, 23 Jul 2026 20:29:00 +0200 Subject: [PATCH 2/2] Process review comment --- Core/GameEngine/Source/GameClient/FXList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/GameEngine/Source/GameClient/FXList.cpp b/Core/GameEngine/Source/GameClient/FXList.cpp index cafd5facfbc..cf6a47995a0 100644 --- a/Core/GameEngine/Source/GameClient/FXList.cpp +++ b/Core/GameEngine/Source/GameClient/FXList.cpp @@ -625,7 +625,7 @@ class ParticleSystemFXNugget : public FXNugget newPos.z = TheTerrainLogic->getLayerHeight( newPos.x, newPos.y, layer ); } else - newPos.z = primary->z + offset.z + m_height.getValue(); + newPos.z += m_height.getValue(); if (m_orientToObject && mtx)