Skip to content

Commit

Permalink
Fixes camera console not closing if you move away (#4276)
Browse files Browse the repository at this point in the history
# About the pull request

fixes #4243 

# Explain why it's good for the game




# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog


:cl:

fix: Camera console should now close if you step away from it

/:cl:
  • Loading branch information
MikeKuwait committed Aug 28, 2023
1 parent 17309d7 commit a20e09f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/game/machinery/computer/camera_console.dm
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
if(inoperable())
return UI_DISABLED

//Closes UI if you move away from console.
/obj/structure/machinery/computer/cameras/ui_state(mob/user)
return GLOB.not_incapacitated_and_adjacent_strict_state

/obj/structure/machinery/computer/cameras/tgui_interact(mob/user, datum/tgui/ui)
// Update UI
ui = SStgui.try_update_ui(user, src, ui)
Expand Down

0 comments on commit a20e09f

Please sign in to comment.