Removed useless sanity check.

I debugged telesci with a proc that fires the teleport but bypasses all sanity checks and sets target = locate(0,0,0) or null
neither case caused the teleport bugs we are seeing
This commit is contained in:
Ccomp5950
2013-12-06 06:03:21 -06:00
parent 9a6b4c6a0d
commit f7d0d95775
-5
View File
@@ -162,11 +162,6 @@
var/trueX = Clamp(round(proj_data.dest_x, 1), 1, world.maxx)
var/trueY = Clamp(round(proj_data.dest_y, 1), 1, world.maxy)
var/spawn_time = round(proj_data.time) * 10
if(isnull(trueX) || !trueX || isnull(trueY) || !trueY || isnull(z_co) || !z_co || z_co == 2) //SANITY CHECK OH GOD (This really shouldn't happen but if it does, here we go!)
investigate_log("[key_name(usr)]/[user] Tried teleporting but range was out of boundsi","telesci")
playsound(telepad.loc, 'sound/weapons/flash.ogg', 25, 1)
temp_msg = "ERROR!<BR>Division by Zero!"
return
var/turf/target = locate(trueX, trueY, z_co)
var/area/A = get_area(target)