don't render the map's fog when RDF_NOWORLDMODEL is set

This commit is contained in:
myT 2023-12-18 00:36:15 +01:00
parent 0eed6f7e7e
commit 6396ca0ef3

View file

@ -1284,7 +1284,8 @@ void World::DrawFog()
// fog 0 is invalid
if(!drawFog ||
tr.world == NULL ||
tr.world->numfogs <= 1)
tr.world->numfogs <= 1 ||
(backEnd.refdef.rdflags & RDF_NOWORLDMODEL) != 0)
{
return;
}