mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
Merge branch 'thefutureofcrashesisfoggy' into 'master'
Some checks are pending
Build and test / MacOS (push) Waiting to run
Build and test / Read .env file and expose it as output (push) Waiting to run
Build and test / Windows (2019) (push) Blocked by required conditions
Build and test / Windows (2022) (push) Blocked by required conditions
Build and test / Ubuntu (push) Waiting to run
Some checks are pending
Build and test / MacOS (push) Waiting to run
Build and test / Read .env file and expose it as output (push) Waiting to run
Build and test / Windows (2019) (push) Blocked by required conditions
Build and test / Windows (2022) (push) Blocked by required conditions
Build and test / Ubuntu (push) Waiting to run
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)
|
||||
return;
|
||||
|
||||
if (cell->getFog())
|
||||
if (cell->getFog() && !cell->getFog()->mFogTextures.empty())
|
||||
segment.loadFogOfWar(cell->getFog()->mFogTextures.back());
|
||||
else
|
||||
segment.initFogOfWar();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue