[MIRROR] Renames the change_area proc to be more accurate [MDB IGNORE] (#12372)

* Renames the `change_area` proc to be more accurate (#65758)

* Renames the `change_area` proc to be more accurate

Co-authored-by: Seth Scherer <supernovaa41@gmx.com>
This commit is contained in:
SkyratBot
2022-03-30 01:49:13 +02:00
committed by GitHub
parent ec3cc17e02
commit c67f06ffdc
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ GLOBAL_LIST_INIT(typecache_powerfailure_safe_areas, typecacheof(/area/engineerin
var/turf/thing = turfs[i]
var/area/old_area = thing.loc
newA.contents += thing
thing.change_area(old_area, newA)
thing.transfer_area_lighting(old_area, newA)
newA.reg_in_areas_in_z()
+2 -1
View File
@@ -91,7 +91,8 @@
reconsider_lights() //The lighting system only cares whether the tile is fully concealed from all directions or not.
/turf/proc/change_area(area/old_area, area/new_area)
///Transfer the lighting of one area to another
/turf/proc/transfer_area_lighting(area/old_area, area/new_area)
if(SSlighting.initialized)
if (new_area.static_lighting != old_area.static_lighting)
if (new_area.static_lighting)
+2 -2
View File
@@ -170,7 +170,7 @@ All ShuttleMove procs go here
contents -= oldT
underlying_old_area.contents += oldT
oldT.change_area(src, underlying_old_area)
oldT.transfer_area_lighting(src, underlying_old_area)
//The old turf has now been given back to the area that turf originaly belonged to
var/area/old_dest_area = newT.loc
@@ -178,7 +178,7 @@ All ShuttleMove procs go here
old_dest_area.contents -= newT
contents += newT
newT.change_area(old_dest_area, src)
newT.transfer_area_lighting(old_dest_area, src)
return TRUE
// Called on areas after everything has been moved
+1 -1
View File
@@ -629,7 +629,7 @@
continue
var/area/old_area = oldT.loc
underlying_area.contents += oldT
oldT.change_area(old_area, underlying_area)
oldT.transfer_area_lighting(old_area, underlying_area)
oldT.empty(FALSE)
// Here we locate the bottommost shuttle boundary and remove all turfs above it