mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Resolves Issue 1083 - Dynamic lighting will no longer revert custom areas back to their previous state.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5202 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -243,7 +243,13 @@ turf/proc/shift_to_subarea()
|
||||
// change the turf's area depending on its brightness
|
||||
// restrict light to valid levels
|
||||
var/light = min(max(round(lighting_lumcount,1),0),lighting_controller.lighting_states)
|
||||
var/new_tag = "[Area.type]sd_L[light]"
|
||||
//var/new_tag = "[Area.type]sd_L[light]"
|
||||
|
||||
var/new_tag
|
||||
if(length(Area.tag) > 5)
|
||||
new_tag = "[copytext(Area.tag,1,-5)]sd_L[light]"
|
||||
else
|
||||
new_tag = "[Area.type]sd_L[light]"
|
||||
|
||||
if(Area.tag!=new_tag) //skip if already in this area
|
||||
var/area/A = locate(new_tag) // find an appropriate area
|
||||
|
||||
Reference in New Issue
Block a user