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

This commit is contained in:
Wildkins
2022-12-23 17:05:04 -05:00
committed by GitHub
parent d3ae4aca61
commit cf04ca67d7
2 changed files with 7 additions and 1 deletions

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)