mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Paranoid RunQueue errors. (#27948)
* Verbose RunQueue errors. * Looser tracking * Add line numbers. * Point fingers at subsystems. * SSinput debugging, useless debugging cleanup
This commit is contained in:
@@ -15,6 +15,11 @@ SUBSYSTEM_DEF(input)
|
||||
/// List of clients whose input to process in loop.
|
||||
var/list/client/processing = list()
|
||||
|
||||
var/last_ckey
|
||||
var/last_x
|
||||
var/last_y
|
||||
var/last_z
|
||||
|
||||
/datum/controller/subsystem/input/Initialize()
|
||||
refresh_client_macro_sets()
|
||||
|
||||
@@ -26,6 +31,10 @@ SUBSYSTEM_DEF(input)
|
||||
set waitfor = FALSE
|
||||
var/list/to_cull
|
||||
for(var/client/C in processing)
|
||||
last_ckey = C.ckey
|
||||
last_x = C.mob?.x
|
||||
last_y = C.mob?.y
|
||||
last_z = C.mob?.z
|
||||
if(processing[C] + AUTO_CULL_TIME < world.time)
|
||||
if(!length(C.input_data.keys_held))
|
||||
LAZYADD(to_cull, C)
|
||||
@@ -42,4 +51,7 @@ SUBSYSTEM_DEF(input)
|
||||
var/client/user = clients[i]
|
||||
user.set_macros()
|
||||
|
||||
/datum/controller/subsystem/input/last_task()
|
||||
return "[last_ckey] at [last_x], [last_y], [last_z]"
|
||||
|
||||
#undef AUTO_CULL_TIME
|
||||
|
||||
Reference in New Issue
Block a user