From 5b67651831ad9b160b41990288c938c7a05c1db1 Mon Sep 17 00:00:00 2001 From: oroborus Date: Wed, 13 Aug 2008 13:54:09 +0000 Subject: - upravene indexovanie v index.c a space.c ktore indexovanie pouziva git-svn-id: http://opensvn.csie.org/tuxanci_ng@194 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/screen/screen_world.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/screen/screen_world.c') diff --git a/src/screen/screen_world.c b/src/screen/screen_world.c index 1c3d433..12da3a1 100644 --- a/src/screen/screen_world.c +++ b/src/screen/screen_world.c @@ -125,6 +125,8 @@ void prepareArena() //printf("getSettingAI = %s\n", getSettingAI()); setCurrentArena(NULL); + tuxWithControlRightKeyboard = NULL; + tuxWithControlLeftKeyboard = NULL; switch( getNetTypeGame() ) { @@ -179,7 +181,7 @@ void drawWorld() if( arena != NULL ) { drawArena(arena); - drawPanel(arena->spaceTux->list); + drawPanel(tuxWithControlRightKeyboard, tuxWithControlLeftKeyboard); if( arena->w > WINDOW_SIZE_X || arena->h > WINDOW_SIZE_Y ) { @@ -505,18 +507,16 @@ void startWorld() prepareArena(); } -static void setAnalyze() +static void action_analyze(space_t *space, tux_t *tux, void *p) { - int i; - tux_t *tux; + addAnalyze(tux->name, tux->score); +} +static void setAnalyze() +{ restartAnalyze(); - for( i = 0 ; i < arena->spaceTux->list->count ; i++ ) - { - tux = (tux_t *)(arena->spaceTux->list->list[i]); - addAnalyze(tux->name, tux->score); - } + actionSpace(arena->spaceTux, action_analyze, NULL); endAnalyze(); } -- cgit v1.2.3