diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-06 17:25:52 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-06 17:25:52 +0000 |
| commit | 35185452d7546ab56aa0040d7c2d68795c3f813f (patch) | |
| tree | 275025e31e94ed999019a12307dccf4fc6f9fc6a /src/tux.c | |
| parent | f3cc2306be924ba521243d38d2cdea8297bdf1eb (diff) | |
- 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
Diffstat (limited to 'src/tux.c')
| -rw-r--r-- | src/tux.c | 24 |
1 files changed, 20 insertions, 4 deletions
@@ -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; } |