Fix 'Could not find space in level mesh buffer' error

Interpolate sector height updates
This commit is contained in:
Magnus Norddahl 2024-08-26 00:49:30 +02:00
commit e94bd7f641
2 changed files with 16 additions and 1 deletions

View file

@ -509,6 +509,11 @@ void DSectorPlaneInterpolation::Interpolate(double smoothratio)
sector->SetPlaneTexZ(pos, oldtexz + (baktexz - oldtexz) * smoothratio, true);
P_RecalculateAttached3DFloors(sector);
sector->CheckPortalPlane(pos);
if (ceiling)
LevelMeshUpdater->CeilingHeightChanged(sector);
else
LevelMeshUpdater->FloorHeightChanged(sector);
}
}