Minor refactor and fix 3d floors not being detected for lightmap updates

This commit is contained in:
RaveYard 2023-09-09 15:22:40 +02:00 committed by Magnus Norddahl
commit 0f6ea51769
4 changed files with 32 additions and 9 deletions

View file

@ -735,7 +735,7 @@ public:
inline void PushVisibleSurface(int surfaceIndex, LevelMeshSurface* surface)
{
if(surface->needsUpdate && mActiveLightmapSurfaces.Size() < lm_max_updates && mActiveLightmapSurfaces.Find(surfaceIndex) >= mActiveLightmapSurfaces.Size()) // yikes, how awful
if(surface->needsUpdate && mActiveLightmapSurfaces.Size() < unsigned(lm_max_updates) && mActiveLightmapSurfaces.Find(surfaceIndex) >= mActiveLightmapSurfaces.Size()) // yikes, how awful
mActiveLightmapSurfaces.Push(surfaceIndex);
}