diff options
| author | Tomas 'ZeXx86' Jedrzejek <zexx86@gmail.com> | 2009-12-10 21:06:13 +0100 |
|---|---|---|
| committer | Tomas 'ZeXx86' Jedrzejek <zexx86@gmail.com> | 2009-12-10 21:06:13 +0100 |
| commit | a971494e88f47d3a52ddfdb2e07d8f5720701261 (patch) | |
| tree | dd8b143b791d7b4a0f7a7f9c68a5af0e0c42db1a | |
| parent | 6387a4bbe1693c19dd27533754a0c6d9d57fcf4d (diff) | |
server allows to join developer version of client
| -rw-r--r-- | data/conf/server.conf | 2 | ||||
| -rw-r--r-- | src/base/space.c | 3 | ||||
| -rw-r--r-- | src/modules/modWall.c | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/data/conf/server.conf b/data/conf/server.conf index 7da2c3c..170a4dd 100644 --- a/data/conf/server.conf +++ b/data/conf/server.conf @@ -15,4 +15,4 @@ MAX_ITEM 20 LOG_FILE tuxanci-server.log SCORE_FILE highscore.txt -SUPPORT_CLIENTS test 0.20.0 dev +SUPPORT_CLIENTS test 0.20.0 0.2.99 dev diff --git a/src/base/space.c b/src/base/space.c index 0189186..5d725ef 100644 --- a/src/base/space.c +++ b/src/base/space.c @@ -92,6 +92,9 @@ void space_add(space_t *p, void *item) int id, x, y, w, h; int i, j; + if (!p || !item) + return; + p->getStatus(item, &id, &x, &y, &w, &h); getSegment(p, x, y, w, h, &segX, &segY, &segW, &segH); diff --git a/src/modules/modWall.c b/src/modules/modWall.c index 4ef308f..c6b1141 100644 --- a/src/modules/modWall.c +++ b/src/modules/modWall.c @@ -215,8 +215,7 @@ static void cmd_wall(char *line) img_y += y; } #ifndef PUBLIC_SERVER - new = newWall(x, y, w, h, img_x, img_y, layer, - export_fce->fce_image_get(IMAGE_GROUP_USER, str_image)); + new = newWall(x, y, w, h, img_x, img_y, layer, export_fce->fce_image_get(IMAGE_GROUP_USER, str_image)); #else new = newWall(x, y, w, h, img_x, img_y, layer); #endif |