oops
This commit is contained in:
1 parent
0801c18e22
commit
f78d5fffdc
1 file changed
+16
-2
+16
-2
@@ -554,7 +554,14 @@ boolean P_SectorUsesDirectionalLighting(const sector_t *sector)
|
||||
|
||||
boolean P_ApplyLightOffset(UINT8 baselightnum, const sector_t *sector)
|
||||
{
|
||||
if (!cv_randomdirlight.value && mapheaderinfo[gamemap-1]->use_custom_light == false)
|
||||
mapheader_lighting_t *lighting = &mapheaderinfo[gamemap-1]->lighting;
|
||||
|
||||
if (encoremode && mapheaderinfo[gamemap-1]->use_encore_lighting)
|
||||
{
|
||||
lighting = &mapheaderinfo[gamemap-1]->lighting_encore;
|
||||
}
|
||||
|
||||
if (!cv_randomdirlight.value && lighting->use_custom_light == false)
|
||||
return (baselightnum < LIGHTLEVELS-1 && baselightnum > 0);
|
||||
|
||||
if (!P_SectorUsesDirectionalLighting(sector))
|
||||
@@ -569,7 +576,14 @@ boolean P_ApplyLightOffset(UINT8 baselightnum, const sector_t *sector)
|
||||
|
||||
boolean P_ApplyLightOffsetFine(UINT8 baselightlevel, const sector_t *sector)
|
||||
{
|
||||
if (!cv_randomdirlight.value && mapheaderinfo[gamemap-1]->use_custom_light == false)
|
||||
mapheader_lighting_t *lighting = &mapheaderinfo[gamemap-1]->lighting;
|
||||
|
||||
if (encoremode && mapheaderinfo[gamemap-1]->use_encore_lighting)
|
||||
{
|
||||
lighting = &mapheaderinfo[gamemap-1]->lighting_encore;
|
||||
}
|
||||
|
||||
if (!cv_randomdirlight.value && lighting->use_custom_light == false)
|
||||
return (baselightlevel < 255 && baselightlevel > 0);
|
||||
|
||||
if (!P_SectorUsesDirectionalLighting(sector))
|
||||
|
||||
Reference in new issue
Block a user