Skip to content

Commit

Permalink
Storage closing QOL (#29)
Browse files Browse the repository at this point in the history
* Storage closing QOL (#15610)

* Update code/game/objects/items/storage/storage.dm

Co-authored-by: Helg2 <[email protected]>
Signed-off-by: homexp13 <[email protected]>

---------

Signed-off-by: homexp13 <[email protected]>
Co-authored-by: BraveMole <[email protected]>
Co-authored-by: Helg2 <[email protected]>
  • Loading branch information
3 people authored Jul 20, 2024
1 parent e79e2d5 commit 9d6f51c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/game/objects/items/storage/storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,13 @@
if(!opened)
orient2hud()
opened = 1
if(user.s_active == src)
close(user)
return TRUE
user.s_active?.close(user)
if (use_sound && user.stat != DEAD)
playsound(src.loc, src.use_sound, 25, 1, 3)

if (user.s_active)
user.s_active.close(user)
show_to(user)
return TRUE

Expand Down

0 comments on commit 9d6f51c

Please sign in to comment.