From 9280e1410f555f2ec6ba4bdb37f922b3095d5210 Mon Sep 17 00:00:00 2001 From: Giacomand Date: Sun, 13 Apr 2014 13:03:32 +0100 Subject: [PATCH] Fixes cyborgs spawning as ghosts. --- code/modules/mob/camera/camera.dm | 6 +++++- code/modules/mob/dead/observer/login.dm | 3 ++- code/modules/mob/living/login.dm | 2 +- code/modules/mob/login.dm | 5 +++-- code/modules/mob/new_player/login.dm | 2 +- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/camera/camera.dm b/code/modules/mob/camera/camera.dm index 8116544117e..69f6cb9b558 100644 --- a/code/modules/mob/camera/camera.dm +++ b/code/modules/mob/camera/camera.dm @@ -16,4 +16,8 @@ /mob/camera/Destroy() ..() - del(src) \ No newline at end of file + del(src) + +/mob/camera/Login() + ..() + update_interface() \ No newline at end of file diff --git a/code/modules/mob/dead/observer/login.dm b/code/modules/mob/dead/observer/login.dm index 85ca2f8eff4..b386c04eb96 100644 --- a/code/modules/mob/dead/observer/login.dm +++ b/code/modules/mob/dead/observer/login.dm @@ -1,4 +1,5 @@ /mob/dead/observer/Login() ..() if(client.prefs.unlock_content) - icon_state = client.prefs.ghost_form \ No newline at end of file + icon_state = client.prefs.ghost_form + update_interface() \ No newline at end of file diff --git a/code/modules/mob/living/login.dm b/code/modules/mob/living/login.dm index acc11c4bc05..d19335d1f3e 100644 --- a/code/modules/mob/living/login.dm +++ b/code/modules/mob/living/login.dm @@ -21,7 +21,7 @@ if(ventcrawler) src << "You can ventcrawl! Use alt+click on vents to quickly travel about the station." - + update_interface() return . //This stuff needs to be merged from cloning.dm but I'm not in the mood to be shouted at for breaking all the things :< ~Carn diff --git a/code/modules/mob/login.dm b/code/modules/mob/login.dm index a99a9f66a84..aef675d24a8 100644 --- a/code/modules/mob/login.dm +++ b/code/modules/mob/login.dm @@ -35,6 +35,7 @@ next_move = 1 sight |= SEE_SELF + ..() if(loc && !isturf(loc)) @@ -48,8 +49,8 @@ var/obj/Loc=loc Loc.on_log() - update_interface() - +// Calling update_interface() in /mob/Login() causes the Cyborg to immediately be ghosted; because of winget(). +// Calling it in the overriden Login, such as /mob/living/Login() doesn't cause this. /mob/proc/update_interface() if(client) if(winget(src, "hotkey_toggle", "is-checked")) diff --git a/code/modules/mob/new_player/login.dm b/code/modules/mob/new_player/login.dm index b067cc0618c..870e7fb4da6 100644 --- a/code/modules/mob/new_player/login.dm +++ b/code/modules/mob/new_player/login.dm @@ -33,4 +33,4 @@ spawn(40) if(client) handle_privacy_poll() - client.playtitlemusic() + client.playtitlemusic() \ No newline at end of file