mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
- fixed getRealLightmode: don't overwrite level->info->lightmode.
This commit is contained in:
parent
ae2f7578dc
commit
f9a86c595c
1 changed files with 2 additions and 2 deletions
|
@ -161,8 +161,8 @@ ELightMode getRealLightmode(FLevelLocals* Level, bool for3d)
|
|||
auto lightmode = Level->info->lightmode;
|
||||
if (lightmode == ELightMode::NotSet)
|
||||
{
|
||||
if (gl_maplightmode != -1) Level->info->lightmode = (ELightMode)*gl_maplightmode;
|
||||
else Level->info->lightmode = ELightMode::Doom;
|
||||
if (gl_maplightmode != -1) lightmode = (ELightMode)*gl_maplightmode;
|
||||
else lightmode = ELightMode::Doom;
|
||||
}
|
||||
if (lightmode == ELightMode::Doom && for3d)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue