From 35185452d7546ab56aa0040d7c2d68795c3f813f Mon Sep 17 00:00:00 2001 From: oroborus Date: Sun, 6 Apr 2008 17:25:52 +0000 Subject: - synchronizuju sa aj veci - preklady obsahuju aj font a velkost pismen - upravy aby to slo ( po stahnut tejto verzii sa hra musi odinstalovat a znova naonstalovat ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@43 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/tux.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'src/tux.c') diff --git a/src/tux.c b/src/tux.c index 2069978..3b14427 100644 --- a/src/tux.c +++ b/src/tux.c @@ -87,7 +87,7 @@ tux_t* newTux() new->gun = GUN_SIMPLE; new->shot[ new->gun ] = GUN_MAX_SHOT; - sprintf(new->name, "no_name_id_%dde", new->id); + sprintf(new->name, "no_name_id_%d", new->id); new->score = 0; new->frame = 0; @@ -155,14 +155,14 @@ void drawTux(tux_t *tux) SDL_Surface *g_image = NULL; assert( tux != NULL ); -/* + if( tux->bonus == BONUS_HIDDEN && getNetTypeGame() != NET_GAME_TYPE_NONE && tux->control == TUX_CONTROL_NET ) { return; } -*/ + switch( tux->position ) { case TUX_UP : @@ -528,6 +528,22 @@ void moveTux(tux_t *tux, int n) int x, y, w, h; arena_t *arena; +/* + static my_time_t lastTime = 0; + my_time_t currentTime; + + if( lastTime == 0 ) + { + lastTime = getMyTime(); + } + + currentTime = getMyTime(); + + printf("%d\n", currentTime - lastTime ); + + lastTime = getMyTime(); +*/ + assert( tux != NULL ); if( tux->position != n ) @@ -668,7 +684,7 @@ void shotTux(tux_t *tux) void actionTux(tux_t *tux, int action) { - if( tux->status != TUX_STATUS_ALIVE ) + if( tux->status == TUX_STATUS_DEAD ) { return; } -- cgit v1.2.3