From 171fd771f9a2fe09b3f865913539d0000ae2ff54 Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Fri, 29 Apr 2022 23:53:55 -0700 Subject: [PATCH] Fixes bad alpha stuff (why?) --- code/modules/atmospherics/gasmixtures/auxgm.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/atmospherics/gasmixtures/auxgm.dm b/code/modules/atmospherics/gasmixtures/auxgm.dm index 3624b2fff3..d3de583f04 100644 --- a/code/modules/atmospherics/gasmixtures/auxgm.dm +++ b/code/modules/atmospherics/gasmixtures/auxgm.dm @@ -96,8 +96,9 @@ GLOBAL_LIST_INIT(nonreactive_gases, typecacheof(list(GAS_O2, GAS_N2, GAS_CO2, GA visibility[g] = gas.moles_visible overlays[g] = new /list(FACTOR_GAS_VISIBLE_MAX) for(var/i in 1 to FACTOR_GAS_VISIBLE_MAX) - var/obj/effect/overlay/gas/overlay = new(gas.gas_overlay, i * 255 / FACTOR_GAS_VISIBLE_MAX) + var/obj/effect/overlay/gas/overlay = new(gas.gas_overlay) overlay.color = gas.color + overlay.alpha = i * 255 / FACTOR_GAS_VISIBLE_MAX overlays[g][i] = overlay else visibility[g] = 0 @@ -185,7 +186,6 @@ GLOBAL_DATUM_INIT(gas_data, /datum/auxgm, new) appearance_flags = TILE_BOUND vis_flags = NONE -/obj/effect/overlay/gas/New(state, alph) +/obj/effect/overlay/gas/New(state) . = ..() icon_state = state - alpha = alph