Skip to content

Commit

Permalink
bugfix: Now you can have lighting in custom areas and spawned maps (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell authored Jul 31, 2024
1 parent de1ae0f commit 48cc2d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/game/turfs/turf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,12 @@
if(lighting_object && !lighting_object.needs_update)
lighting_object.update()

if(old_always_lit != always_lit)
if(!always_lit)
lighting_build_overlay()
else
lighting_clear_overlay()

for(var/turf/space/S in RANGE_TURFS(1, src)) //RANGE_TURFS is in code\__HELPERS\game.dm
S.update_starlight()

Expand Down

0 comments on commit 48cc2d8

Please sign in to comment.