mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Merge branch 'thefutureofcrashesisfoggy' into 'master'
Only load FoW if it exists Closes #8262 See merge request OpenMW/openmw!4485
This commit is contained in:
commit
3e8ea8086c
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ namespace MWRender
|
||||||
if (segment.mFogOfWarImage != nullptr)
|
if (segment.mFogOfWarImage != nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (cell->getFog())
|
if (cell->getFog() && !cell->getFog()->mFogTextures.empty())
|
||||||
segment.loadFogOfWar(cell->getFog()->mFogTextures.back());
|
segment.loadFogOfWar(cell->getFog()->mFogTextures.back());
|
||||||
else
|
else
|
||||||
segment.initFogOfWar();
|
segment.initFogOfWar();
|
||||||
|
|
Loading…
Reference in a new issue