Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
lara-cheat: fix fly cheat and harpoon
Browse files Browse the repository at this point in the history
Resolves #199.
  • Loading branch information
rr- committed Sep 6, 2024
1 parent fb31917 commit 0c8b769
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/game/gun/gun.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void __cdecl Gun_Control(void)

if (g_Lara.request_gun_type != g_Lara.gun_type || (g_Input & IN_DRAW)) {
if (g_Lara.request_gun_type == LGT_FLARE
|| (g_Lara.skidoo == NO_ITEM
|| (g_Lara.skidoo == NO_ITEM && g_Lara.water_status != LWS_CHEAT
&& (g_Lara.request_gun_type == LGT_HARPOON
|| g_Lara.water_status == LWS_ABOVE_WATER
|| (g_Lara.water_status == LWS_WADE
Expand Down Expand Up @@ -82,6 +82,10 @@ void __cdecl Gun_Control(void)

if ((g_Input & IN_DRAW) || g_Lara.request_gun_type != g_Lara.gun_type) {
g_Lara.gun_status = LGS_UNDRAW;
} else if (
g_Lara.gun_type == LGT_HARPOON
&& g_Lara.water_status == LWS_CHEAT) {
g_Lara.gun_status = LGS_UNDRAW;
} else if (
g_Lara.gun_type != LGT_HARPOON
&& g_Lara.water_status != LWS_ABOVE_WATER
Expand Down

0 comments on commit 0c8b769

Please sign in to comment.