mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-23 00:31:57 +00:00
Fixes wire cutting runtime and other potential runtime.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
/proc/key_name_helper(whom, include_name, include_link = FALSE, type = null)
|
/proc/key_name_helper(whom, include_name, include_link = FALSE, type = null)
|
||||||
if(include_link != FALSE && include_link != TRUE)
|
if(include_link != FALSE && include_link != TRUE)
|
||||||
log_runtime(EXCEPTION("Key_name was called with an incorrect include_link [include_link]"))
|
log_runtime(EXCEPTION("Key_name was called with an incorrect include_link [include_link]"), src)
|
||||||
|
|
||||||
var/mob/M
|
var/mob/M
|
||||||
var/client/C
|
var/client/C
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ By design, d1 is the smallest direction and d2 is the highest
|
|||||||
if(c.d1 == 12 || c.d2 == 12)
|
if(c.d1 == 12 || c.d2 == 12)
|
||||||
c.qdel()*/
|
c.qdel()*/
|
||||||
///// Z-Level Stuff
|
///// Z-Level Stuff
|
||||||
investigate_log("was cut by [key_name(usr, usr.client)] in [get_area(user)]([T.x], [T.y], [T.z] - [ADMIN_JMP(T)])","wires")
|
investigate_log("was cut by [key_name(usr, 1)] in [get_area(user)]([T.x], [T.y], [T.z] - [ADMIN_JMP(T)])","wires")
|
||||||
|
|
||||||
qdel(src) // qdel
|
qdel(src) // qdel
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -426,7 +426,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|||||||
var/key = usr.key //so we don't lose the info during the spawn delay
|
var/key = usr.key //so we don't lose the info during the spawn delay
|
||||||
if(!(being_built.build_type & PROTOLATHE))
|
if(!(being_built.build_type & PROTOLATHE))
|
||||||
g2g = 0
|
g2g = 0
|
||||||
message_admins("Protolathe exploit attempted by [key_name(usr, usr.client)]!")
|
message_admins("Protolathe exploit attempted by [key_name(usr, TRUE)]!")
|
||||||
|
|
||||||
if(g2g) //If input is incorrect, nothing happens
|
if(g2g) //If input is incorrect, nothing happens
|
||||||
var/new_coeff = coeff * being_built.lathe_time_factor
|
var/new_coeff = coeff * being_built.lathe_time_factor
|
||||||
@@ -502,7 +502,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|||||||
power = max(2000, power)
|
power = max(2000, power)
|
||||||
if(!(being_built.build_type & IMPRINTER))
|
if(!(being_built.build_type & IMPRINTER))
|
||||||
g2g = 0
|
g2g = 0
|
||||||
message_admins("Circuit imprinter exploit attempted by [key_name(usr, usr.client)]!")
|
message_admins("Circuit imprinter exploit attempted by [key_name(usr, TRUE)]!")
|
||||||
|
|
||||||
if(g2g) //Again, if input is wrong, do nothing
|
if(g2g) //Again, if input is wrong, do nothing
|
||||||
add_wait_message("Imprinting Circuit. Please Wait...", IMPRINTER_DELAY)
|
add_wait_message("Imprinting Circuit. Please Wait...", IMPRINTER_DELAY)
|
||||||
|
|||||||
Reference in New Issue
Block a user