diff options
Diffstat (limited to 'src/modules/modTeleport.c')
| -rwxr-xr-x | src/modules/modTeleport.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/modTeleport.c b/src/modules/modTeleport.c index 2b94e2f..0bc4c61 100755 --- a/src/modules/modTeleport.c +++ b/src/modules/modTeleport.c @@ -184,12 +184,13 @@ static int getRandomPosition() } assert( ! "Stupid error ! " ); + return -1; // no warnning } static void teleportTux(tux_t *tux, teleport_t *teleport) { teleport_t *distTeleport; - int dist_x, dist_y; + int dist_x = 0, dist_y = 0; // no warnning if( tux->bonus == BONUS_GHOST || export_fce->fce_getNetTypeGame() == NET_GAME_TYPE_CLIENT ) @@ -319,7 +320,7 @@ static void moveShot(shot_t *shot, int position, int src_x, int src_y, int dist_x, int dist_y, int dist_w, int dist_h) { int offset = 0; - int new_x, new_y; + int new_x = 0, new_y = 0; // no warnning switch( shot->position ) { |