From 5994584233d92f0106dfd3551ab934fcf51fc3b2 Mon Sep 17 00:00:00 2001 From: Vi3trice <80771500+Vi3trice@users.noreply.github.com> Date: Sat, 6 Aug 2022 12:06:52 -0400 Subject: [PATCH] [GBP no update] Fix airlock updating icons when setting emergency mode (#18629) * Turns out you can't call update_appearance while on old airlock code * The future is hazy * Update tgui.bundle.js * That wasn't the right branch * Update tgui.bundle.js --- code/game/area/areas/depot-areas.dm | 2 +- code/modules/security_levels/keycard_authentication.dm | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/game/area/areas/depot-areas.dm b/code/game/area/areas/depot-areas.dm index c43a2651bc1..b686315dff1 100644 --- a/code/game/area/areas/depot-areas.dm +++ b/code/game/area/areas/depot-areas.dm @@ -320,7 +320,7 @@ if(istype(A, /obj/machinery/door/airlock/hatch/syndicate/vault)) continue A.emergency = !!openaccess - A.update_appearance() + A.update_icon() /area/syndicate_depot/core/proc/toggle_falsewalls() for(var/obj/structure/falsewall/plastitanium/F in src) diff --git a/code/modules/security_levels/keycard_authentication.dm b/code/modules/security_levels/keycard_authentication.dm index 5e48217d5f0..e0343b2265d 100644 --- a/code/modules/security_levels/keycard_authentication.dm +++ b/code/modules/security_levels/keycard_authentication.dm @@ -220,7 +220,7 @@ GLOBAL_VAR_INIT(station_all_access, 0) for(var/area/maintenance/A in world) // Why are these global lists? AAAAAAAAAAAAAA for(var/obj/machinery/door/airlock/D in A) D.emergency = 1 - D.update_appearance() + D.update_icon() GLOB.minor_announcement.Announce("Access restrictions on maintenance and external airlocks have been removed.") GLOB.maint_all_access = 1 SSblackbox.record_feedback("nested tally", "keycard_auths", 1, list("emergency maintenance access", "enabled")) @@ -229,7 +229,7 @@ GLOBAL_VAR_INIT(station_all_access, 0) for(var/area/maintenance/A in world) for(var/obj/machinery/door/airlock/D in A) D.emergency = 0 - D.update_appearance() + D.update_icon() GLOB.minor_announcement.Announce("Access restrictions on maintenance and external airlocks have been re-added.") GLOB.maint_all_access = 0 SSblackbox.record_feedback("nested tally", "keycard_auths", 1, list("emergency maintenance access", "disabled")) @@ -238,7 +238,7 @@ GLOBAL_VAR_INIT(station_all_access, 0) for(var/obj/machinery/door/airlock/D in GLOB.airlocks) if(is_station_level(D.z)) D.emergency = 1 - D.update_appearance() + D.update_icon() GLOB.minor_announcement.Announce("Access restrictions on all station airlocks have been removed due to an ongoing crisis. Trespassing laws still apply unless ordered otherwise by Command staff.") GLOB.station_all_access = 1 SSblackbox.record_feedback("nested tally", "keycard_auths", 1, list("emergency station access", "enabled")) @@ -247,7 +247,7 @@ GLOBAL_VAR_INIT(station_all_access, 0) for(var/obj/machinery/door/airlock/D in GLOB.airlocks) if(is_station_level(D.z)) D.emergency = 0 - D.update_appearance() + D.update_icon() GLOB.minor_announcement.Announce("Access restrictions on all station airlocks have been re-added. Seek station AI or a colleague's assistance if you are stuck.") GLOB.station_all_access = 0 SSblackbox.record_feedback("nested tally", "keycard_auths", 1, list("emergency station access", "disabled"))