From 38e556f886275f85863b5758e5c309e961f9e14a Mon Sep 17 00:00:00 2001 From: Tomas 'ZeXx86' Jedrzejek Date: Thu, 10 Dec 2009 23:10:29 +0100 Subject: Some fixes in module area --- src/modules/modWall.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/modules/modWall.c') 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; } -- cgit v1.2.3