mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Fixes cyborgs spawning as ghosts.
This commit is contained in:
@@ -16,4 +16,8 @@
|
||||
|
||||
/mob/camera/Destroy()
|
||||
..()
|
||||
del(src)
|
||||
del(src)
|
||||
|
||||
/mob/camera/Login()
|
||||
..()
|
||||
update_interface()
|
||||
@@ -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()
|
||||
@@ -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
|
||||
|
||||
@@ -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"))
|
||||
|
||||
@@ -33,4 +33,4 @@
|
||||
spawn(40)
|
||||
if(client)
|
||||
handle_privacy_poll()
|
||||
client.playtitlemusic()
|
||||
client.playtitlemusic()
|
||||
Reference in New Issue
Block a user