Add ceiling check to vertical pole turn states

This commit is contained in:
Sezz 2021-11-21 21:08:12 +11:00
parent ef604f66b9
commit d34be4f719

View file

@ -1088,7 +1088,8 @@ void lara_as_pole_turn_clockwise(ITEM_INFO* item, COLL_INFO* coll)
if (TrInput & IN_ACTION)
{
if (TrInput & IN_FORWARD)
if (TrInput & IN_FORWARD &&
TestLaraPoleUp(item, coll))
{
item->goalAnimState = LS_POLE_IDLE; // TODO: Dispatch to climp up.
@ -1149,7 +1150,8 @@ void lara_as_pole_turn_counter_clockwise(ITEM_INFO* item, COLL_INFO* coll)
if (TrInput & IN_ACTION)
{
if (TrInput & IN_FORWARD)
if (TrInput & IN_FORWARD &&
TestLaraPoleUp(item, coll))
{
item->goalAnimState = LS_POLE_IDLE; // TODO: Dispatch to climb up.