Disable footprints on bridge objects

This commit is contained in:
Lwmte 2021-11-03 01:52:56 +03:00
parent 6e509ca324
commit fd96beb3ad

View file

@ -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 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)
{