mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
a
This commit is contained in:
@@ -86,12 +86,9 @@
|
|||||||
|
|
||||||
var/list/border = block(locate(max(T.x, 1), max(T.y, 1), T.z),
|
var/list/border = block(locate(max(T.x, 1), max(T.y, 1), T.z),
|
||||||
locate(min(T.x+width, world.maxx), min(T.y+height, world.maxy), T.z))
|
locate(min(T.x+width, world.maxx), min(T.y+height, world.maxy), T.z))
|
||||||
for(var/L in border)
|
for(var/turf/L as anything in border)
|
||||||
var/turf/turf_to_disable = L
|
L.blocks_air = TRUE
|
||||||
turf_to_disable.set_sleeping(TRUE)
|
L.ImmediateCalculateAdjacentTurfs()
|
||||||
|
|
||||||
if(SSair.initialized)
|
|
||||||
sleep(1)
|
|
||||||
|
|
||||||
// Accept cached maps, but don't save them automatically - we don't want
|
// Accept cached maps, but don't save them automatically - we don't want
|
||||||
// ruins clogging up memory for the whole round.
|
// ruins clogging up memory for the whole round.
|
||||||
|
|||||||
@@ -77,14 +77,6 @@
|
|||||||
remove_ripples()
|
remove_ripples()
|
||||||
return DOCKING_IMMOBILIZED
|
return DOCKING_IMMOBILIZED
|
||||||
|
|
||||||
for(var/turf/old_terf in old_turfs)
|
|
||||||
old_terf.set_sleeping(TRUE)
|
|
||||||
for(var/turf/new_terf in new_turfs)
|
|
||||||
new_terf.set_sleeping(TRUE)
|
|
||||||
|
|
||||||
if(SSair.initialized)
|
|
||||||
sleep(1)
|
|
||||||
|
|
||||||
// Moving to the new location will trample the ripples there at the exact
|
// Moving to the new location will trample the ripples there at the exact
|
||||||
// same time any mobs there are trampled, to avoid any discrepancy where
|
// same time any mobs there are trampled, to avoid any discrepancy where
|
||||||
// the ripples go away before it is safe.
|
// the ripples go away before it is safe.
|
||||||
@@ -146,7 +138,6 @@
|
|||||||
for(var/turf/terf as anything in old_turfs + new_turfs)
|
for(var/turf/terf as anything in old_turfs + new_turfs)
|
||||||
terf.ImmediateCalculateAdjacentTurfs()
|
terf.ImmediateCalculateAdjacentTurfs()
|
||||||
|
|
||||||
|
|
||||||
for(var/i in 1 to old_turfs.len)
|
for(var/i in 1 to old_turfs.len)
|
||||||
var/turf/oldT = old_turfs[i]
|
var/turf/oldT = old_turfs[i]
|
||||||
var/turf/newT = new_turfs[i]
|
var/turf/newT = new_turfs[i]
|
||||||
|
|||||||
Reference in New Issue
Block a user