Fixes cyborgs spawning as ghosts.

This commit is contained in:
Giacomand
2014-04-13 13:04:36 +01:00
parent 16ae0d9f0d
commit 9280e1410f
5 changed files with 12 additions and 6 deletions
+5 -1
View File
@@ -16,4 +16,8 @@
/mob/camera/Destroy()
..()
del(src)
del(src)
/mob/camera/Login()
..()
update_interface()
+2 -1
View File
@@ -1,4 +1,5 @@
/mob/dead/observer/Login()
..()
if(client.prefs.unlock_content)
icon_state = client.prefs.ghost_form
icon_state = client.prefs.ghost_form
update_interface()
+1 -1
View File
@@ -21,7 +21,7 @@
if(ventcrawler)
src << "<span class='notice'>You can ventcrawl! Use alt+click on vents to quickly travel about the station.</span>"
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
+3 -2
View File
@@ -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"))
+1 -1
View File
@@ -33,4 +33,4 @@
spawn(40)
if(client)
handle_privacy_poll()
client.playtitlemusic()
client.playtitlemusic()