Fixes turfs updating their atmos overlay every atmos tick

(I forgot a line)
Also makes turfs only remove the current atmos overlay, not all of them.
(I had tried this before, but it didn't work, and that turns out to be because of the line I forgot)
This commit is contained in:
MrStonedOne
2015-07-15 01:48:46 -07:00
parent 2f9b4cd3f2
commit 83ed5377cd
+6 -3
View File
@@ -234,11 +234,14 @@
var/new_overlay_type = tile_graphic()
if (new_overlay_type == atmos_overlay_type)
return
overlays -= SSair.plasma_overlay
overlays -= SSair.sleeptoxin_overlay
var/atmos_overlay = get_atmos_overlay_by_name(new_overlay_type)
var/atmos_overlay = get_atmos_overlay_by_name(atmos_overlay_type)
if (atmos_overlay)
overlays -= atmos_overlay
atmos_overlay = get_atmos_overlay_by_name(new_overlay_type)
if (atmos_overlay)
overlays += atmos_overlay
atmos_overlay_type = new_overlay_type
/turf/simulated/proc/get_atmos_overlay_by_name(var/name)
switch(name)