Something about banana pies, runtime errors and warnings.

This commit is contained in:
Ghommie
2020-03-15 15:41:32 +01:00
parent b7c3ada3e5
commit b453a25e14
6 changed files with 11 additions and 10 deletions
+2 -1
View File
@@ -83,6 +83,7 @@
elements.Cut()
/datum/beam/Destroy()
finished = TRUE
Reset()
target = null
origin = null
@@ -100,7 +101,7 @@
var/length = round(sqrt((DX)**2+(DY)**2)) //hypotenuse of the triangle formed by target and origin's displacement
for(N in 0 to length-1 step 32)//-1 as we want < not <=, but we want the speed of X in Y to Z and step X
if(QDELETED(src) || finished)
if(finished)
break
var/obj/effect/ebeam/X = new beam_type(origin_oldloc)
X.owner = src