Fixes null sound assert fails

This commit is contained in:
Sood
2016-03-23 06:51:03 -07:00
parent 34a1e96514
commit 49d6d1b76a
5 changed files with 25 additions and 21 deletions

View File

@@ -69,12 +69,12 @@
pod.dir = src.dir
to_chat(user, "<span class='notice'>You strut the pod frame together.</span>")
R.use(10)
playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1)
for(var/obj/item/pod_parts/pod_frame/F in linkedparts)
if(1 == turn(F.dir, -F.link_angle)) //if the part links north during construction, as the bottom left part always does
//log_admin("Repositioning")
pod.loc = F.loc
qdel(F)
playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1)
if(iswrench(O))
to_chat(user, "<span class='notice'>You [!anchored ? "secure \the [src] in place." : "remove the securing bolts."]</span>")
anchored = !anchored