Merge pull request #3374 from Citadel-Station-13/upstream-merge-31635
[MIRROR] Small lighting perf tweak
This commit is contained in:
@@ -90,6 +90,9 @@ GLOBAL_LIST_INIT(LIGHTING_CORNER_DIAGONAL, list(NORTHEAST, SOUTHEAST, SOUTHWEST,
|
||||
lum_g += delta_g
|
||||
lum_b += delta_b
|
||||
|
||||
if ((delta_r+delta_g+delta_b) == 0)
|
||||
return
|
||||
|
||||
if (!needs_update)
|
||||
needs_update = TRUE
|
||||
GLOB.lighting_update_corners += src
|
||||
|
||||
Reference in New Issue
Block a user