Skip to content

Commit

Permalink
Shuffle the code around
Browse files Browse the repository at this point in the history
  • Loading branch information
private-tristan committed Dec 2, 2024
1 parent 62e5dda commit 91105c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/game/machinery/doors/poddoor/two_tile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
return ..()

/obj/structure/machinery/door/poddoor/two_tile/open(forced = FALSE)
if(operating) //doors can still open when emag-disabled
return FALSE

if(!density)
return

if(operating) //doors can still open when emag-disabled
return FALSE

operating = DOOR_OPERATING_OPENING
start_opening()

Expand Down Expand Up @@ -62,12 +62,12 @@


/obj/structure/machinery/door/poddoor/two_tile/close(forced = FALSE)
if(operating)
return FALSE

if(density)
return

if(operating)
return FALSE

start_closing()
addtimer(CALLBACK(src, PROC_REF(close_fully)), openspeed, TIMER_UNIQUE|TIMER_OVERRIDE|TIMER_NO_HASH_WAIT)
return TRUE
Expand Down

0 comments on commit 91105c5

Please sign in to comment.