mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Fixed r501 (underwear not showing) Cause: bad indentation A possible fix for some very odd bugs caused by restarting the MC related to the usr variable being passed into the MC. *shrug* Very hard to test. Removed the need for the world to be in Debug2 mode to edit ticklag as the verb is hidden behind another proc now anyway, and it's become more of an annoyance than a thing to stop people accidentally clicking it. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3695 316c924e-a436-60f5-8080-3fe189b3f50e
25 lines
976 B
Plaintext
25 lines
976 B
Plaintext
/client/proc/restartcontroller()
|
|
set category = "Debug"
|
|
set name = "Restart Master Controller"
|
|
if(!holder) return
|
|
switch(alert("Are you sure? If the control is still running it will now be running twice.",,"Yes","No"))
|
|
if("Yes")
|
|
src = null
|
|
usr = null //weird things were happening after restarting MC.
|
|
spawn(0)
|
|
master_controller.process()
|
|
if("No")
|
|
return 0
|
|
feedback_add_details("admin_verb","RMC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/debug_master_controller()
|
|
set category = "Debug"
|
|
set name = "Debug Master Controller"
|
|
switch(alert("Debug Master Controller or Failsafe?" ,, "Master Controller" , "Failsafe"))
|
|
if("Master Controller")
|
|
debug_variables(master_controller)
|
|
if("Failsafe")
|
|
debug_variables(Failsafe)
|
|
feedback_add_details("admin_verb","DMC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return |