Fixes standard airlocks becoming shuttles ones for a split-second when opened. (#9938)

This commit is contained in:
fernerr
2020-09-09 17:15:54 +02:00
committed by GitHub
parent af982b3dd9
commit 472dbb74ea
4 changed files with 8 additions and 4 deletions
+4 -4
View File
@@ -5,7 +5,7 @@
name = "Door"
desc = "It opens and closes."
icon = 'icons/obj/doors/Doorint.dmi'
icon_state = "door1"
icon_state = "door_closed"
anchored = 1
opacity = 1
density = 1
@@ -467,9 +467,9 @@
/obj/machinery/door/update_icon()
if(density)
icon_state = "door1"
icon_state = "door_closed"
else
icon_state = "door0"
icon_state = "door_open"
return
@@ -501,7 +501,7 @@
operating = TRUE
do_animate("opening")
icon_state = "door0"
icon_state = "door_open"
set_opacity(0)
sleep(3)
src.density = 0
@@ -0,0 +1,4 @@
author: Ferner
delete-after: True
changes:
- bugfix: "Fixed standard airlocks becoming shuttle ones for a split-second on occasion, and others disappearing."
Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB