Skip to content

Commit b97ce4f

Browse files
authored
Fix arrow type marker snapping to the ground (PR #4027, Fixes #536, Fixes #4000)
1 parent 6139d1b commit b97ce4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Client/multiplayer_sa/CMultiplayerSA.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,6 +1575,14 @@ void CMultiplayerSA::InitHooks()
15751575
// Allow alpha change for helicopter rotor (#523)
15761576
MemSet((void*)0x6C444B, 0x90, 6);
15771577
MemSet((void*)0x6C4453, 0x90, 0x68);
1578+
1579+
// Disable Z position changes in the matrix in the C3dMarkers::PlaceMarker (#4000, #536)
1580+
// To prevent arrow-type markers from snapping to the ground
1581+
MemCpy((void*)0x725844, "\xDD\xD8\x90", 3);
1582+
MemCpy((void*)0x725619, "\xDD\xD8\x90", 3);
1583+
MemCpy((void*)0x72565A, "\xDD\xD8\x90", 3);
1584+
MemCpy((void*)0x7259B0, "\xDD\xD8\x90", 3);
1585+
MemSet((void*)0x7258B8, 0x90, 6);
15781586

15791587
InitHooks_CrashFixHacks();
15801588
InitHooks_DeviceSelection();

0 commit comments

Comments
 (0)