mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user