Fix off by one

This commit is contained in:
RaveYard 2023-09-09 11:42:02 +02:00 committed by Magnus Norddahl
commit 1466eeefc0

View file

@ -200,7 +200,7 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou
}
auto& list = RenderState.GetVisibleSurfaceList();
if (list.Size() <= lm_background_updates)
if (list.Size() < lm_background_updates)
{
int index = 0;
for (auto& e : level.levelMesh->Surfaces)