Skip to content

Commit

Permalink
tr1/lara: fix wading wall collision
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 committed Oct 20, 2024
1 parent c8f22d2 commit d9142e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tr1/game/lara/col.c
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ void Lara_Col_Wade(ITEM *item, COLL_INFO *coll)

if (Lara_DeflectEdge(item, coll)) {
item->rot.z = 0;
if (coll->front_type != COLL_NONE && coll->front_floor < -STEP_L * 5 / 2
if (coll->front_type == HT_WALL && coll->front_floor < -STEP_L * 5 / 2
&& coll->old_anim_state == LS_WADE
&& Item_TestAnimEqual(item, LA_WADE)) {
item->current_anim_state = LS_SPLAT;
Expand Down

0 comments on commit d9142e5

Please sign in to comment.