mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Ghosts can't haunt canvases (#91759)
## About The Pull Request Ghosts are snowflaked able to interact with the canvas UI, which meant they were able to press buttons including finalize. This fixes that with a special observer check. Leaves a comment to explain why it is the way it is as well in case someone in the future messes it up. ## Why It's Good For The Game Closes https://github.com/tgstation/tgstation/issues/91750 ## Changelog 🆑 fix: Observers can no longer finalize unfinished canvas paintings. /🆑
This commit is contained in:
@@ -175,8 +175,9 @@
|
||||
if(.)
|
||||
return
|
||||
var/mob/user = usr
|
||||
///this is here to allow observers and viewers to zoom in and out regardless of adjacency.
|
||||
if(action != "zoom_in" && action != "zoom_out" && !can_interact(user))
|
||||
//this is here to allow observers and viewers to zoom in and out regardless of adjacency.
|
||||
//observers need this special check because we allow them to operate the UI in ui_state
|
||||
if((action != "zoom_in" && action != "zoom_out") && (isobserver(user) || !can_interact(user)))
|
||||
return
|
||||
switch(action)
|
||||
if("paint", "fill")
|
||||
|
||||
Reference in New Issue
Block a user