From c68df329f2483d8fc9b75488c695787cd18c20a4 Mon Sep 17 00:00:00 2001 From: oroborus Date: Sat, 16 Aug 2008 21:00:29 +0000 Subject: - 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 --- src/modules/modAI.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/modules') 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); /* -- cgit v1.2.3