Fix windoors playing a closed deny animation when open (#15427)

This commit is contained in:
Wildkins
2022-12-23 23:05:04 +01:00
committed by GitHub
parent d3ae4aca61
commit cf04ca67d7
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -65,7 +65,7 @@
/obj/machinery/door/window/allowed(mob/M)
. = ..()
if(inoperable()) // Unpowered windoors can just be slid open
if(inoperable() || !density) // Unpowered windoors can just be slid open, open windoors can always be closed
return TRUE
use_power_oneoff(50) // Just powering the RFID and maybe a weak motor
if(operable() && . == FALSE)
@@ -0,0 +1,6 @@
author: JohnWildkins
delete-after: True
changes:
- bugfix: "Windoors no longer play a closed deny animation when interacted with while open without access."