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:
elly1989@rocketmail.com
2012-11-26 13:46:21 +00:00
parent 09e9762e40
commit 1d6d5d28ad
+7 -1
View File
@@ -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