Fixes PDA Chat Client not working properly after PDA loses charge (#19157)

fixes https://github.com/Aurorastation/Aurora.3/issues/19156

tl;dr: chat client is supposed to try turning the service back on
automatically when you open it, but it was only doing that if manually
disabled, which is a different state. this makes it do it if it's killed
(like via running out of charge) or disabled manually

- bugfix: "Fixed PDA Chat Client not working properly after a PDA loses
charge."
This commit is contained in:
Llywelwyn
2024-05-15 18:10:15 +01:00
committed by GitHub
parent 845759c427
commit 73fab5b9d3
2 changed files with 59 additions and 1 deletions
@@ -64,7 +64,7 @@
else
if((!computer.registered_id && !computer.register_account(src)))
return
if(service_state == PROGRAM_STATE_DISABLED)
if(service_state <= PROGRAM_STATE_KILLED) // Killed or disabled.
computer.enable_service(null, user, src)
if(computer.hidden_uplink && syndi_auth)
if(alert(user, "Resume or close and secure?", filedesc, "Resume", "Close") == "Resume")