runtime viewer fixes (#18512)

This commit is contained in:
Kashargul
2025-09-17 14:20:51 +02:00
committed by GitHub
parent 40ac2309c8
commit f4714c5489
8 changed files with 20 additions and 9 deletions
+11
View File
@@ -1223,6 +1223,17 @@
sleep(2)
C.jumptocoord(x,y,z)
else if(href_list["viewruntime"])
var/datum/error_viewer/error_viewer = locate(href_list["viewruntime"])
if(!istype(error_viewer))
to_chat(usr, span_warning("That runtime viewer no longer exists."), confidential = TRUE)
return
if(href_list["viewruntime_backto"])
error_viewer.show_to(owner, locate(href_list["viewruntime_backto"]), href_list["viewruntime_linear"])
else
error_viewer.show_to(owner, null, href_list["viewruntime_linear"])
else if(href_list["adminchecklaws"])
output_ai_laws()