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:
Charlie Nolan
2025-01-27 06:01:49 +00:00
committed by GitHub
parent 9bf8b927b4
commit 6eeea2b7c1
3 changed files with 29 additions and 15 deletions
+12
View File
@@ -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