AI spawning fixes

This commit is contained in:
Krausus
2016-08-31 02:53:17 -04:00
parent 52a9a69509
commit dc1b51a1ef
3 changed files with 7 additions and 5 deletions

View File

@@ -232,9 +232,8 @@ var/round_start_time = 0
votetimer()
for(var/mob/M in mob_list)
if(istype(M,/mob/new_player))
var/mob/new_player/N = M
for(var/mob/new_player/N in mob_list)
if(N.client)
N.new_player_panel_proc()
return 1

View File

@@ -61,6 +61,7 @@ var/global/list/empty_playable_ai_cores = list()
loc_landmark = sloc
forceMove(loc_landmark.loc)
view_core()
// Before calling this, make sure an empty core exists, or this will no-op
/mob/living/silicon/ai/proc/moveToEmptyCore()
@@ -73,6 +74,6 @@ var/global/list/empty_playable_ai_cores = list()
empty_playable_ai_cores -= C
forceMove(C.loc)
view_core()
qdel(C)

View File

@@ -37,6 +37,8 @@
O.add_ai_verbs()
O.rename_self("AI",1)
spawn()
qdel(src)
return O