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/base | |
| 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/base')
| -rw-r--r-- | src/base/arenaFile.c | 2 | ||||
| -rw-r--r-- | src/base/path.h | 2 | ||||
| -rw-r--r-- | src/base/shot.c | 2 | ||||
| -rw-r--r-- | src/base/tux.c | 4 |
4 files changed, 6 insertions, 4 deletions
diff --git a/src/base/arenaFile.c b/src/base/arenaFile.c index 3493fe6..1ced97a 100644 --- a/src/base/arenaFile.c +++ b/src/base/arenaFile.c @@ -199,7 +199,7 @@ char *getArenaImage(int id) arena_t* getArena(int id) { textFile_t *ts; - arena_t *arena; + arena_t *arena = NULL; // no warninng int i; ts = (textFile_t *) listArenaFile->list[id]; diff --git a/src/base/path.h b/src/base/path.h index b20c1f0..783fc6c 100644 --- a/src/base/path.h +++ b/src/base/path.h @@ -17,6 +17,8 @@ #ifdef PUBLIC_SERVER #define PATH_DIR PREFIX "/share/tuxanci-ng-server/" #define PATH_MODULES PREFIX "/lib/tuxanci-ng-server/" + #define SERVER_CONFIG "/etc/tuxanci-ng-server/server.conf" + #endif #define PATH_IMAGE PATH_DIR "image/" diff --git a/src/base/shot.c b/src/base/shot.c index 826bad4..e0d9dbf 100644 --- a/src/base/shot.c +++ b/src/base/shot.c @@ -187,7 +187,7 @@ void drawListShot(list_t *listShot) static int getRandomCourse(int x, int y) { - int ret; + int ret = -1; // no warnning do{ switch( random() % 3 ) diff --git a/src/base/tux.c b/src/base/tux.c index e954fec..5907a49 100644 --- a/src/base/tux.c +++ b/src/base/tux.c @@ -483,7 +483,7 @@ void eventConflictTuxWithShot(arena_t *arena) void moveTux(tux_t *tux, int n) { - int px, py; + int px = 0, py = 0; // no warninng int zal_x, zal_y; int new_x, new_y; int w, h; @@ -756,7 +756,7 @@ void eventListTux(list_t *listTux) #endif pickUpGun(thisTux); eventBonus(thisTux); - //eventGiveTuxListItem(thisTux, arena->spaceItem); + eventGiveTuxListItem(thisTux, arena->spaceItem); } } |