summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/conf/server.conf2
-rw-r--r--src/base/space.c3
-rw-r--r--src/modules/modWall.c3
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