Index: ai/ailog.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/ai/ailog.c,v retrieving revision 1.13 diff -u -r1.13 ailog.c --- ai/ailog.c 24 May 2004 21:36:45 -0000 1.13 +++ ai/ailog.c 11 Jun 2004 13:46:45 -0000 @@ -24,6 +24,7 @@ #include "unit.h" #include "gotohand.h" +#include "plrhand.h" #include "aidata.h" #include "ailog.h" @@ -69,6 +70,9 @@ va_end(ap); cat_snprintf(buffer, sizeof(buffer), buffer2); + if (pplayer->debug) { + notify_conn(&game.est_connections, buffer); + } freelog(minlevel, buffer); } @@ -100,6 +104,9 @@ va_end(ap); cat_snprintf(buffer, sizeof(buffer), buffer2); + if (pcity->debug) { + notify_conn(&game.est_connections, buffer); + } freelog(minlevel, buffer); } @@ -151,6 +158,9 @@ va_end(ap); cat_snprintf(buffer, sizeof(buffer), buffer2); + if (punit->debug) { + notify_conn(&game.est_connections, buffer); + } freelog(minlevel, buffer); } @@ -192,5 +202,8 @@ unit_owner(punit)->name, unit_type(punit)->name, punit->id, punit->x, punit->y, s, id, x, y); cat_snprintf(buffer, sizeof(buffer), msg); + if (punit->debug) { + notify_conn(&game.est_connections, buffer); + } freelog(minlevel, buffer); }