From d9e265975297fb712213fbbf12c43b6ca68fc846 Mon Sep 17 00:00:00 2001 From: oroborus Date: Tue, 26 Feb 2008 20:42:25 +0000 Subject: 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 --- src/screen_world.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'src/screen_world.c') 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) -- cgit v1.2.3