diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-13 13:54:09 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-13 13:54:09 +0000 |
| commit | 5b67651831ad9b160b41990288c938c7a05c1db1 (patch) | |
| tree | 6380e378eae351d40abe85b66aed40f5c88f2951 /src/screen/screen_world.c | |
| parent | 54d61c622ba721b4ea57852e0ba6c87acfa66a2b (diff) | |
- 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
Diffstat (limited to 'src/screen/screen_world.c')
| -rw-r--r-- | src/screen/screen_world.c | 18 |
1 files changed, 9 insertions, 9 deletions
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(); } |