Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 88fbfd3

Browse files
committed
hack swim to wade state fix;
1 parent b3d1880 commit 88fbfd3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/state_control/state_control_Lara.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -2633,8 +2633,10 @@ int StateControl_Lara(struct entity_s *ent, struct ss_animation_s *ss_anim)
26332633
}
26342634
else if(curr_fc->floor_hit.hit && (curr_fc->transition_level - curr_fc->floor_hit.point[2] < ent->character->height - ent->character->swim_depth))
26352635
{
2636-
ss_anim->next_state = TR_STATE_LARA_WADE_FORWARD;
2637-
ss_anim->onEndFrame = ent_set_on_floor; // to wade
2636+
Entity_SetAnimation(ent, ANIM_TYPE_BASE, TR_ANIMATION_LARA_WADE, 0);
2637+
ent->move_type = MOVE_ON_FLOOR;
2638+
//ss_anim->next_state = TR_STATE_LARA_WADE_FORWARD;
2639+
//ss_anim->onEndFrame = ent_set_on_floor;
26382640
}
26392641
else if((cmd->move[0] == 1) && !clean_action)
26402642
{

0 commit comments

Comments
 (0)