Skip to content

Commit

Permalink
lara_cheat: adjust fly cheat gun reset
Browse files Browse the repository at this point in the history
This allows the gun undrawing animation to complete fully, avoiding
mesh issues if the cheat is exited very quickly.

Part of LostArtefacts#237.
  • Loading branch information
lahm86 committed Sep 19, 2024
1 parent e347bfe commit a562f5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game/lara/lara_cheat.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,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;
}
Expand Down

0 comments on commit a562f5c

Please sign in to comment.