Fix marker placement over game objects with terrain-only re-raycast

When cursor hits an object (hitType=2), re-call WorldIntersectionTest
with flags=0 to get terrain position behind it. Replaces the GUID-based
unit position lookup which failed for GOs (no movement struct).
This commit is contained in:
MarcelineVQ
2026-03-10 14:10:25 -07:00
parent 3e37b96788
commit 3fdda58f09
2 changed files with 35 additions and 22 deletions
+3
View File
@@ -37,12 +37,15 @@ pub const FN_DECREMENT_REFCOUNT: usize = 0x007103a0;
pub const PTR_WORLD_FRAME: usize = 0x00B4B2BC;
pub const FN_UPDATE_HIT_TEST: usize = 0x00481F00;
pub const FN_WORLD_INTERSECTION_TEST: usize = 0x00480DF0;
pub const WF_HIT_TYPE: usize = 0x350;
pub const WF_HIT_GUID: usize = 0x358;
pub const WF_HIT_TERRAIN_X: usize = 0x360;
pub const WF_HIT_TERRAIN_Y: usize = 0x364;
pub const WF_HIT_TERRAIN_Z: usize = 0x368;
pub const WF_RAY_START: usize = 0x370;
pub const WF_RAY_END: usize = 0x37C;
// =============================================================================
// Per-frame world update