Skip to content

Commit

Permalink
don't spawn AI human if action is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
xDanilcusx committed Sep 12, 2024
1 parent 78425b0 commit 0f41636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/modules/admin/verbs/select_equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
arm_equipment(M, dresscode, FALSE, count_participant)
if(!no_logs)
message_admins("[key_name_admin(usr)] changed the equipment of [key_name_admin(M)] to [dresscode].")
return
return TRUE

/client/proc/cmd_admin_dress_all()
set category = "Debug"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,7 @@
return

var/mob/living/carbon/human/ai/ai_human = new()
cmd_admin_dress_human(ai_human)
if(!cmd_admin_dress_human(ai_human))
qdel(ai_human)
return
ai_human.forceMove(get_turf(mob))

0 comments on commit 0f41636

Please sign in to comment.