Fixes police tape being placed through windows.

This commit is contained in:
Erthilo
2012-05-22 00:14:16 +01:00
parent b7b33fc91a
commit 160baf3754
2 changed files with 20 additions and 3 deletions

View File

@@ -49,11 +49,19 @@
end = get_turf(locate(end.x+d,end.y,end.z))
dir = "h"
while (cur!=end)
var/can_place = 1
while (cur!=end && can_place)
if(cur.density == 1)
usr << "\blue You can't run [src] through a wall!"
return
can_place = 0
else
for(var/obj/O in cur)
if(O.density)
can_place = 0
break
cur = get_step_towards(cur,end)
if (!can_place)
usr << "\blue You can't run \the [src] through that!"
return
cur = start
var/tapetest = 0