Merge pull request #8025 from VOREStation/upstream-merge-7224

[MIRROR] Fixes runtime in AI generation
This commit is contained in:
Novacat
2020-05-22 08:59:29 -04:00
committed by GitHub
+5 -3
View File
@@ -41,7 +41,7 @@
return src
/mob/new_player/AIize(var/move)
/mob/new_player/AIize(var/move = TRUE)
spawning = 1
return ..()
@@ -59,7 +59,9 @@
return O
//VOREStation Edit End
/mob/living/carbon/AIize(var/move)
return ..(move)
/mob/living/carbon/AIize(var/move = TRUE)
if (transforming)
return
for(var/obj/item/W in src)
@@ -73,7 +75,7 @@
/mob/proc/AIize(var/move = TRUE)
if(client)
src << sound(null, repeat = 0, wait = 0, volume = 85, channel = 1) // stop the jams for AIs
var/newloc = loc
if(move)
var/obj/loc_landmark