- use symbolic constants for the light modes.
This commit is contained in:
parent
15949102da
commit
1187906a61
10 changed files with 62 additions and 34 deletions
|
|
@ -127,7 +127,7 @@ CUSTOM_CVAR(Int, gl_lightmode, 3, CVAR_ARCHIVE | CVAR_NOINITCALL)
|
|||
else if (newself > 4) newself = 8;
|
||||
else if (newself < 0) newself = 0;
|
||||
if (self != newself) self = newself;
|
||||
else if ((level.info == nullptr || level.info->lightmode == -1)) level.lightmode = self;
|
||||
else if ((level.info == nullptr || level.info->lightmode == ELightMode::NotSet)) level.lightmode = (ELightMode)*self;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1523,7 +1523,7 @@ void G_InitLevelLocals ()
|
|||
|
||||
level.DefaultEnvironment = info->DefaultEnvironment;
|
||||
|
||||
level.lightmode = info->lightmode < 0? gl_lightmode : info->lightmode;
|
||||
level.lightmode = info->lightmode == ELightMode::NotSet? (ELightMode)*gl_lightmode : info->lightmode;
|
||||
level.brightfog = info->brightfog < 0? gl_brightfog : !!info->brightfog;
|
||||
level.lightadditivesurfaces = info->lightadditivesurfaces < 0 ? gl_lightadditivesurfaces : !!info->lightadditivesurfaces;
|
||||
level.notexturefill = info->notexturefill < 0 ? gl_notexturefill : !!info->notexturefill;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue