Merge pull request #6470 from Citadel-Station-13/upstream-merge-37304

[MIRROR] Fixes buildmode trying to build in nullspace.
This commit is contained in:
LetterJay
2018-04-22 22:19:06 -05:00
committed by GitHub
+5 -1
View File
@@ -260,7 +260,11 @@
var/alt_click = pa.Find("alt")
var/ctrl_click = pa.Find("ctrl")
. = 1
//Clicking on UI elements shouldn't try to build things in nullspace.
if(istype(object,/obj/screen))
return FALSE
. = TRUE
switch(mode)
if(BASIC_BUILDMODE)
if(isturf(object) && left_click && !alt_click && !ctrl_click)