From 2eefee04976e68510e5d7c40943611db137a1cf5 Mon Sep 17 00:00:00 2001 From: lahm86 <33758420+lahm86@users.noreply.github.com> Date: Sun, 15 Sep 2024 14:03:51 +0100 Subject: [PATCH] lara_cheat: adjust fly cheat gun reset This allows the gun undrawing animation to complete fully, avoiding mesh issues if the cheat is exited very quickly. Part of #237. --- src/game/lara/lara_cheat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/lara/lara_cheat.c b/src/game/lara/lara_cheat.c index 18eb4939..3b597113 100644 --- a/src/game/lara/lara_cheat.c +++ b/src/game/lara/lara_cheat.c @@ -189,10 +189,9 @@ bool __cdecl Lara_Cheat_ExitFlyMode(void) g_Lara.gun_status = LGS_UNDRAW; } else { g_Lara.gun_status = LGS_ARMLESS; + Lara_Cheat_ReinitialiseGunMeshes(); } - Lara_Cheat_ReinitialiseGunMeshes(); - Console_Log(GS(OSD_FLY_MODE_OFF)); return true; }