mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-02 09:47:58 +03:00
Use bridge index in COLL_RESULT for material tests
This commit is contained in:
parent
0c1237857c
commit
bd60cf5f0e
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ void AddFootprint(ITEM_INFO* item, bool rightFoot)
|
|||
auto result = GetCollisionResult(position.x, position.y - STEP_SIZE, position.z, item->roomNumber);
|
||||
auto floor = result.BottomBlock;
|
||||
|
||||
if (floor->InsideBridge(position.x, position.z, result.Position.Floor + 1, false, false) >= 0)
|
||||
if (result.Position.Bridge >= 0)
|
||||
return;
|
||||
|
||||
switch (floor->Material)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue