Latespawn AI will have their eye spawn in the correct location. (#8056)

This commit is contained in:
mikomyazaki
2020-01-22 17:12:34 +01:00
committed by Matt Atlas
parent c5725f425d
commit e2c0e6fd6a
3 changed files with 8 additions and 2 deletions
+1 -2
View File
@@ -48,9 +48,8 @@
if(client)
client.eye = new_eye
/mob/living/silicon/ai/proc/create_eyeobj(var/newloc)
/mob/living/silicon/ai/proc/create_eyeobj(var/newloc = get_turf(src))
if(eyeobj) destroy_eyeobj()
if(!newloc) newloc = get_turf(src)
eyeobj = new /mob/abstract/eye/aiEye(newloc)
eyeobj.possess(src)
@@ -336,6 +336,7 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
empty_playable_ai_cores -= C
character.forceMove(C.loc)
character.eyeobj.forceMove(C.loc)
AnnounceCyborg(character, rank, "has been downloaded to the empty core in \the [character.loc.loc]")
SSticker.mode.handle_latejoin(character)