mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-27 14:06:43 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user