summaryrefslogtreecommitdiff
path: root/src/modules/modWall.c
diff options
context:
space:
mode:
authorMichal Zima <xhire@mujmalysvet.cz>2010-06-18 13:09:40 +0200
committerMichal Zima <xhire@mujmalysvet.cz>2010-06-18 13:09:40 +0200
commite7a6a7a14aeea2ee9f2c235d0cbabf0cb3660e89 (patch)
tree4ab86d23b7470657761d754426bab3645a91bf14 /src/modules/modWall.c
parent8a278016b0ebe4b2a20348f1ebb2aff3037248c3 (diff)
Wiped out all "UNUSED" stuff
Plus small code cleaning, simplifying of some statements etc.
Diffstat (limited to 'src/modules/modWall.c')
-rw-r--r--src/modules/modWall.c40
1 files changed, 12 insertions, 28 deletions
diff --git a/src/modules/modWall.c b/src/modules/modWall.c
index bacbfe8..7a1fa7a 100644
--- a/src/modules/modWall.c
+++ b/src/modules/modWall.c
@@ -138,11 +138,6 @@ static void getStatusImgWall(void *p, int *id, int *x, int *y, int *w, int *h)
static void setStatusImgWall(void *p, int x, int y, int w, int h)
{
- UNUSED(p);
- UNUSED(x);
- UNUSED(y);
- UNUSED(w);
- UNUSED(h);
}
#endif /* PUBLIC_SERVER */
@@ -163,24 +158,20 @@ static void cmd_wall(char *line)
rel = 0;
- if (export_fce->fce_getValue(line, "rel", str_rel, STR_NUM_SIZE) != 0)
+ if (export_fce->fce_getValue(line, "rel", str_rel, STR_NUM_SIZE) != 0) {
strcpy(str_rel, "0");
- if (export_fce->fce_getValue(line, "x", str_x, STR_NUM_SIZE) != 0)
- return;
- if (export_fce->fce_getValue(line, "y", str_y, STR_NUM_SIZE) != 0)
- return;
- if (export_fce->fce_getValue(line, "w", str_w, STR_NUM_SIZE) != 0)
- return;
- if (export_fce->fce_getValue(line, "h", str_h, STR_NUM_SIZE) != 0)
- return;
- if (export_fce->fce_getValue(line, "img_x", str_img_x, STR_NUM_SIZE) != 0)
- return;
- if (export_fce->fce_getValue(line, "img_y", str_img_y, STR_NUM_SIZE) != 0)
- return;
- if (export_fce->fce_getValue(line, "layer", str_layer, STR_NUM_SIZE) != 0)
- return;
- if (export_fce->fce_getValue(line, "image", str_image, STR_SIZE) != 0)
+ }
+
+ if (export_fce->fce_getValue(line, "x", str_x, STR_NUM_SIZE) != 0 ||
+ export_fce->fce_getValue(line, "y", str_y, STR_NUM_SIZE) != 0 ||
+ export_fce->fce_getValue(line, "w", str_w, STR_NUM_SIZE) != 0 ||
+ export_fce->fce_getValue(line, "h", str_h, STR_NUM_SIZE) != 0 ||
+ export_fce->fce_getValue(line, "img_x", str_img_x, STR_NUM_SIZE) != 0 ||
+ export_fce->fce_getValue(line, "img_y", str_img_y, STR_NUM_SIZE) != 0 ||
+ export_fce->fce_getValue(line, "layer", str_layer, STR_NUM_SIZE) != 0 ||
+ export_fce->fce_getValue(line, "image", str_image, STR_SIZE) != 0) {
return;
+ }
rel = atoi(str_rel);
x = atoi(str_x);
@@ -234,9 +225,6 @@ static int init(export_fce_t *p)
#ifndef PUBLIC_SERVER
static void action_drawwall(space_t *space, wall_t *wall, void *p)
{
- UNUSED(space);
- UNUSED(p);
-
drawWall(wall);
}
@@ -259,9 +247,6 @@ static void action_eventwall(space_t *space, wall_t *wall, shot_t *shot)
arena_t *arena;
tux_t *author;
- UNUSED(space);
- UNUSED(wall);
-
arena = export_fce->fce_arena_get_current();
author = space_get_object_id(arena->spaceTux, shot->author_id);
@@ -323,7 +308,6 @@ static void cmdArena(char *line)
static void recvMsg(char *msg)
{
- UNUSED(msg);
}
static int destroy()