diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-06 21:27:30 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-06 21:27:30 +0000 |
| commit | 24eaa3195f6f7ab7f8dbf68ba6ccb5340df7d2a8 (patch) | |
| tree | 95e2eb3410bc67b2433d87e9d5ef8a6eaed8cd99 /src/modules | |
| parent | 45a3bb2fa9515cfc487653c31abf630f83881026 (diff) | |
- oprava warnningov
- tux zomrie ked pri nom vybuchne bomba
- AI videt na radare
- server si nacitava konfiguraciu z /etc/tuxanci-ng-server/server.conf
git-svn-id: http://opensvn.csie.org/tuxanci_ng@113 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/modules')
| -rwxr-xr-x | src/modules/modPipe.c | 4 | ||||
| -rwxr-xr-x | src/modules/modTeleport.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/modules/modPipe.c b/src/modules/modPipe.c index 2c1a6e5..2ca2f17 100755 --- a/src/modules/modPipe.c +++ b/src/modules/modPipe.c @@ -218,7 +218,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 warninng switch( shot->position ) { @@ -341,6 +341,8 @@ static int negPosition(int n) assert( ! "premenna n ma zlu hodnotu !" ); break; } + + return -1; // no warnning } int event() 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 ) { |