From 26abf951e21b657d77c5dc95ebc780b3bc657f78 Mon Sep 17 00:00:00 2001 From: "quartz235@gmail.com" Date: Sat, 17 Dec 2011 00:14:11 +0000 Subject: [PATCH] Fixes: Issue 241 Issue 237 and Issue 240 git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2708 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/gamemodes/events/clang.dm | 3 ++- code/game/objects/stacks/glass.dm | 4 ++++ code/modules/power/apc.dm | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/code/game/gamemodes/events/clang.dm b/code/game/gamemodes/events/clang.dm index ddfd81f5ff2..ed8bea49867 100644 --- a/code/game/gamemodes/events/clang.dm +++ b/code/game/gamemodes/events/clang.dm @@ -17,7 +17,7 @@ In my current plan for it, 'solid' will be defined as anything with density == 1 anchored = 1 Bump(atom/clong) - if (istype(clong, /turf)) + if (istype(clong, /turf) && !istype(clong, /turf/simulated/shuttle) && !istype(clong, /turf/unsimulated)) if(clong.density) clong.ex_act(2) for (var/mob/O in hearers(src, null)) @@ -32,6 +32,7 @@ In my current plan for it, 'solid' will be defined as anything with density == 1 clong.meteorhit(src) if(clong && prob(25)) src.loc = clong.loc + else del(src) /proc/immovablerod() diff --git a/code/game/objects/stacks/glass.dm b/code/game/objects/stacks/glass.dm index e81bb4217ce..6c7ce11a6a3 100644 --- a/code/game/objects/stacks/glass.dm +++ b/code/game/objects/stacks/glass.dm @@ -19,6 +19,8 @@ SHARDS title += " ([src.amount] sheet\s left)" switch(alert(title, "Would you like full tile glass or one direction?", "one direct", "full (2 sheets)", "cancel", null)) if("one direct") + if (src.loc != usr) + return 1 if (src.amount < 1) return 1 var/list/directions = new/list(cardinal) @@ -52,6 +54,8 @@ SHARDS W.anchored = 0 src.use(1) if("full (2 sheets)") + if (src.loc != usr) + return 1 if (src.amount < 2) return 1 if (locate(/obj/structure/window) in usr.loc) diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index e028354486a..3021a0bea5f 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -857,6 +857,7 @@ else src.malfai = usr malfai << "Hack complete. The APC is now under your exclusive control." + updateicon() else if (href_list["occupyapc"]) malfoccupy(usr)