[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/ai ai_force.c new_ai.c
From: |
ludovic pollet |
Subject: |
[Stratagus-CVS] stratagus/src/ai ai_force.c new_ai.c |
Date: |
Fri, 31 Oct 2003 04:48:20 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: ludovic pollet <address@hidden> 03/10/31 04:48:20
Modified files:
src/ai : ai_force.c new_ai.c
Log message:
Debug to stdout only when asked to.
Patches:
Index: stratagus/src/ai/ai_force.c
diff -u stratagus/src/ai/ai_force.c:1.37 stratagus/src/ai/ai_force.c:1.38
--- stratagus/src/ai/ai_force.c:1.37 Fri Oct 31 04:14:45 2003
+++ stratagus/src/ai/ai_force.c Fri Oct 31 04:48:18 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: ai_force.c,v 1.37 2003/10/31 09:14:45 pludov Exp $
+// $Id: ai_force.c,v 1.38 2003/10/31 09:48:18 pludov Exp $
//@{
@@ -174,11 +174,11 @@
}
}
}
- DebugLevel0Fn("prefered order for %s is " _C_ unittype->Ident);
+ DebugLevel3Fn("prefered order for %s is " _C_ unittype->Ident);
for (i = 0; i < usableTypesCount; i++) {
- DebugLevel0(" %s" _C_ UnitTypes[usableTypes[i]]->Ident);
+ DebugLevel3(" %s" _C_ UnitTypes[usableTypes[i]]->Ident);
}
- DebugLevel0("\n");
+ DebugLevel3("\n");
return usableTypesCount;
}
@@ -340,7 +340,7 @@
prev = (&AiPlayer->Force[force].Units);
while ((aiunit = (*prev))) {
if (counter[aiunit->Unit->Type->Type] > 0) {
- DebugLevel0Fn("Release unit %s\n" _C_
aiunit->Unit->Type->Ident);
+ DebugLevel3Fn("Release unit %s\n" _C_
aiunit->Unit->Type->Ident);
counter[aiunit->Unit->Type->Type]--;
RefsDebugCheck(!aiunit->Unit->Refs);
--aiunit->Unit->Refs;
Index: stratagus/src/ai/new_ai.c
diff -u stratagus/src/ai/new_ai.c:1.82 stratagus/src/ai/new_ai.c:1.83
--- stratagus/src/ai/new_ai.c:1.82 Fri Oct 31 04:14:46 2003
+++ stratagus/src/ai/new_ai.c Fri Oct 31 04:48:20 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: new_ai.c,v 1.82 2003/10/31 09:14:46 pludov Exp $
+// $Id: new_ai.c,v 1.83 2003/10/31 09:48:20 pludov Exp $
//@{
@@ -245,7 +245,9 @@
pai = AiPlayer;
// Debugging
- debugForces();
+ if (pai->ScriptDebug) {
+ debugForces();
+ }
for (i = 0; i < AI_MAX_RUNNING_SCRIPTS; i++) {
AiScript = pai->Scripts + i;
@@ -762,7 +764,7 @@
{
CLprintf(file, "\n;;; -----------------------------------------\n");
CLprintf(file,
- ";;; MODULE: AI $Id: new_ai.c,v 1.82 2003/10/31 09:14:46 pludov Exp
$\n\n");
+ ";;; MODULE: AI $Id: new_ai.c,v 1.83 2003/10/31 09:48:20 pludov Exp
$\n\n");
SaveAiTypesWcName(file);
SaveAiHelper(file);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stratagus-CVS] stratagus/src/ai ai_force.c new_ai.c,
ludovic pollet <=