summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorTomas 'ZeXx86' Jedrzejek <zexx86@gmail.com>2009-12-10 23:10:29 +0100
committerTomas 'ZeXx86' Jedrzejek <zexx86@gmail.com>2009-12-10 23:10:29 +0100
commit38e556f886275f85863b5758e5c309e961f9e14a (patch)
tree54d7cf9d4fda360d8b69009d6acef26bd8eae89e /src/modules
parenta971494e88f47d3a52ddfdb2e07d8f5720701261 (diff)
Some fixes in module area
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/modWall.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/modWall.c b/src/modules/modWall.c
index c6b1141..0e4ff02 100644
--- a/src/modules/modWall.c
+++ b/src/modules/modWall.c
@@ -225,14 +225,16 @@ static void cmd_wall(char *line)
export_fce->fce_arena_get_current()->h,
320, 240,
getStatusWall, setStatusWall);
+ }
#ifndef PUBLIC_SERVER
+ if (spaceImgWall == NULL) {
spaceImgWall = space_new(export_fce->fce_arena_get_current()->w,
export_fce->fce_arena_get_current()->h,
320, 240,
getStatusImgWall, setStatusImgWall);
-#endif
}
+#endif
space_add(spaceWall, new);
@@ -351,6 +353,10 @@ static int destroy()
space_destroy(spaceImgWall);
#endif
list_destroy(listWall);
+
+ spaceWall = 0;
+ spaceImgWall = 0;
+
return 0;
}