summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-16 21:00:29 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-16 21:00:29 +0000
commitc68df329f2483d8fc9b75488c695787cd18c20a4 (patch)
tree18e11cd70360c77606ecdeafe5dbd8f9ff0c12d7 /src/modules
parent753fde16397b5943091aa1e9112cea1e5ded0ca5 (diff)
- vsetky widegety pouzivaju widget_t
( priparava na kontajner s widgetmi ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@201 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/modules')
-rwxr-xr-xsrc/modules/modAI.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/modAI.c b/src/modules/modAI.c
index ccd444a..372e8cb 100755
--- a/src/modules/modAI.c
+++ b/src/modules/modAI.c
@@ -209,10 +209,6 @@ static void eventTuxAI(tux_t *tux)
int countLimit = 0;
int countDo = 0;
- listAlternative = newList();
- listDst = newList();
- listFork = newList();
-
export_fce->fce_getTuxProportion(tux, &x, &y, &w, &h);
//printf("tux AI %d %d\n", x, y);
@@ -225,6 +221,10 @@ static void eventTuxAI(tux_t *tux)
return;
}
+ listAlternative = newList();
+ listDst = newList();
+ listFork = newList();
+
shotTux(arena, tux, rivalTux);
export_fce->fce_getTuxProportion(rivalTux, &rival_x, &rival_y, NULL, NULL);
@@ -330,6 +330,7 @@ static void eventTuxAI(tux_t *tux)
export_fce->fce_actionTux(tux, recRoute);
}
+ destroyListItem(listFork, destroyAlternative);
destroyListItem(listAlternative, destroyAlternative);
destroyListItem(listDst, destroyAlternative);
/*