summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomas 'ZeXx86' Jedrzejek <zexx86@gmail.com>2009-12-10 21:06:13 +0100
committerTomas 'ZeXx86' Jedrzejek <zexx86@gmail.com>2009-12-10 21:06:13 +0100
commita971494e88f47d3a52ddfdb2e07d8f5720701261 (patch)
treedd8b143b791d7b4a0f7a7f9c68a5af0e0c42db1a /src
parent6387a4bbe1693c19dd27533754a0c6d9d57fcf4d (diff)
server allows to join developer version of client
Diffstat (limited to 'src')
-rw-r--r--src/base/space.c3
-rw-r--r--src/modules/modWall.c3
2 files changed, 4 insertions, 2 deletions
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