diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-26 20:42:25 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-26 20:42:25 +0000 |
| commit | d9e265975297fb712213fbbf12c43b6ca68fc846 (patch) | |
| tree | db35124a91b29b4489820cecc5aaf1ae0020929a /src/screen_world.c | |
| parent | d783595135ca768ae14f08aa4033dea35ed0458b (diff) | |
par drobnych uprav, casovac je nastaveny na 50ms aby to nezralo procak
git-svn-id: http://opensvn.csie.org/tuxanci_ng@5 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/screen_world.c')
| -rw-r--r-- | src/screen_world.c | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/src/screen_world.c b/src/screen_world.c index bf091a5..8d0b87d 100644 --- a/src/screen_world.c +++ b/src/screen_world.c @@ -56,9 +56,29 @@ arena_t* getWorldArena() return arena; } +static void timer_endArena() +{ + if( getNetTypeGame() != NET_GAME_TYPE_CLIENT ) + { + setScreen("analyze"); + return; + } +} + void countRoundInc() { + if( count >= max_count ) + { + return; + } + count++; + + if( count >= max_count ) + { + playSound("end", SOUND_GROUP_BASE); + addTimer(timer_endArena, NULL, TIMER_END_ARENA); + } } static tux_t* getControlTux(int control_type) @@ -250,12 +270,13 @@ static void eventEnd() setScreen("analyze"); return; } - +/* if( count >= max_count && getNetTypeGame() != NET_GAME_TYPE_CLIENT ) { setScreen("analyze"); return; - } + } +*/ } void tuxControl(tux_t *p) |