mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Fix the hilarious bug of NPCs falling to their deaths in interiors
This commit is contained in:
parent
b978153edb
commit
2883ecc19a
@ -1299,7 +1299,7 @@ namespace MWWorld
|
||||
}
|
||||
|
||||
float terrainHeight = -std::numeric_limits<float>::max();
|
||||
if (isCellExterior())
|
||||
if (ptr.getCell()->isExterior())
|
||||
terrainHeight = mRendering->getTerrainHeightAt(pos.asVec3());
|
||||
|
||||
if (pos.pos[2] < terrainHeight)
|
||||
|
Loading…
x
Reference in New Issue
Block a user