Skip to content

Commit

Permalink
tr1/lara/cheat: adjust initial fly position
Browse files Browse the repository at this point in the history
This sets Lara one click from the floor when entering the fly
cheat to avoid the swim collision adjusting her X rotation from the
desired 30 degrees.
  • Loading branch information
lahm86 committed Oct 21, 2024
1 parent 34a927b commit 7c1781c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tr1/game/lara/cheat.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ bool Lara_Cheat_EnterFlyMode(void)
}

if (g_Lara.water_status != LWS_UNDERWATER || g_LaraItem->hit_points <= 0) {
g_LaraItem->pos.y -= 0x80;
g_LaraItem->pos.y -= STEP_L;
g_LaraItem->current_anim_state = LS_SWIM;
g_LaraItem->goal_anim_state = LS_SWIM;
Item_SwitchToAnim(g_LaraItem, LA_SWIM_GLIDE, 0);
Expand Down

0 comments on commit 7c1781c

Please sign in to comment.