From 6a79b2bf099c71d5f650d629e2b72bec33174350 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Sat, 27 Jan 2018 10:40:12 -0800 Subject: [PATCH] revert vis_contents atmos gases until byond can make 512 clients not crash Because I don't expect this to take longer then a few weeks, and because we might want to test this out again every byond version i'm not going to remove the code to make it easier to re-add it. This makes it so 511 clients can see atmos gases again --- .../atmospherics/environmental/LINDA_turf_tile.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/modules/atmospherics/environmental/LINDA_turf_tile.dm b/code/modules/atmospherics/environmental/LINDA_turf_tile.dm index f2d1a241f2d..7c4ca2c85f4 100644 --- a/code/modules/atmospherics/environmental/LINDA_turf_tile.dm +++ b/code/modules/atmospherics/environmental/LINDA_turf_tile.dm @@ -98,11 +98,11 @@ var/list/new_overlay_types = tile_graphic() var/list/atmos_overlay_types = src.atmos_overlay_types // Cache for free performance - #if DM_VERSION >= 513 + /*#if DM_VERSION >= 513 #warning 512 is stable now for sure, remove the old code - #endif + #endif*/ - #if DM_VERSION >= 512 + /*#if DM_VERSION >= 512 if (atmos_overlay_types) for(var/overlay in atmos_overlay_types-new_overlay_types) //doesn't remove overlays that would only be added vars["vis_contents"] -= overlay @@ -112,7 +112,7 @@ vars["vis_contents"] += new_overlay_types - atmos_overlay_types //don't add overlays that already exist else vars["vis_contents"] += new_overlay_types - #else + #else*/ if (atmos_overlay_types) for(var/overlay in atmos_overlay_types-new_overlay_types) //doesn't remove overlays that would only be added cut_overlay(overlay) @@ -122,7 +122,7 @@ add_overlay(new_overlay_types - atmos_overlay_types) //don't add overlays that already exist else add_overlay(new_overlay_types) - #endif + //#endif UNSETEMPTY(new_overlay_types) src.atmos_overlay_types = new_overlay_types