From f09b754a19d84db8aa73516fb15d23a0cd79725f Mon Sep 17 00:00:00 2001 From: mwerezak Date: Sun, 16 Aug 2015 14:55:54 -0400 Subject: [PATCH] Fixes #10636 --- code/game/objects/structures/window.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index 41f7754e98..fc9f5b6a19 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -294,6 +294,10 @@ set category = "Object" set src in oview(1) + // TODO : Change to incapacitated() on merge. + if(usr.stat || usr.lying || usr.resting || usr.buckled) + return 0 + if(anchored) usr << "It is fastened to the floor therefore you can't rotate it!" return 0 @@ -310,6 +314,10 @@ set category = "Object" set src in oview(1) + // TODO : Change to incapacitated() on merge. + if(usr.stat || usr.lying || usr.resting || usr.buckled) + return 0 + if(anchored) usr << "It is fastened to the floor therefore you can't rotate it!" return 0