mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-03 18:27:59 +03:00
Disable footprints on bridge objects
This commit is contained in:
parent
6e509ca324
commit
fd96beb3ad
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,8 @@ void AddFootprint(ITEM_INFO* item, bool rightFoot)
|
||||||
auto result = GetCollisionResult(position.x, position.y - STEP_SIZE, position.z, item->roomNumber);
|
auto result = GetCollisionResult(position.x, position.y - STEP_SIZE, position.z, item->roomNumber);
|
||||||
auto floor = result.BottomBlock;
|
auto floor = result.BottomBlock;
|
||||||
|
|
||||||
position.y = result.Position.Floor - 4;
|
if (floor->InsideBridge(position.x, position.z, result.Position.Floor + 1, false, false) >= 0)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (floor->Material)
|
switch (floor->Material)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue