mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-06 19:01:06 +03:00
Add ceiling check to vertical pole turn states
This commit is contained in:
parent
ef604f66b9
commit
d34be4f719
1 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue