Merge pull request #23221 from Cyberboss/patch-19

Makes testing << to world as well
This commit is contained in:
Joan Lung
2017-01-23 18:01:36 -05:00
committed by GitHub
2 changed files with 6 additions and 7 deletions
+4 -3
View File
@@ -8,10 +8,11 @@
/proc/notice(msg)
world.log << "## NOTICE: [msg]"
//print a testing-mode debug message to world.log
/proc/testing(msg)
//print a testing-mode debug message to world.log and world
#ifdef TESTING
world.log << "## TESTING: [msg]"
#define testing(msg) world.log << "## TESTING: [msg]"; world << "## TESTING: [msg]"
#else
#define testing(msg)
#endif
/proc/log_admin(text)
+2 -4
View File
@@ -710,7 +710,6 @@ var/list/admin_verbs_hideable = list(
var/list/candidates
var/turf/open/floor/tile
var/j,k
var/mob/living/carbon/human/mob
for (var/i = 1 to amount)
j = 100
@@ -730,9 +729,8 @@ var/list/admin_verbs_hideable = list(
while ((!tile || !istype(tile)) && --k > 0)
if (tile)
mob = new/mob/living/carbon/human/interactive(tile)
testing("Spawned test mob with name \"[mob.name]\" at [tile.x],[tile.y],[tile.z]")
new/mob/living/carbon/human/interactive(tile)
testing("Spawned test mob at [tile.x],[tile.y],[tile.z]")
while (!area && --j > 0)
/client/proc/toggle_AI_interact()