summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/base')
-rw-r--r--src/base/arena.c12
-rw-r--r--src/base/item.c2
-rw-r--r--src/base/main.h2
-rw-r--r--src/base/proto.c9
-rw-r--r--src/base/server.c6
-rw-r--r--src/base/shot.c4
-rw-r--r--src/base/tux.c9
7 files changed, 44 insertions, 0 deletions
diff --git a/src/base/arena.c b/src/base/arena.c
index 868d6bb..4f9f51f 100644
--- a/src/base/arena.c
+++ b/src/base/arena.c
@@ -222,16 +222,25 @@ static void drawBackground(arena_t * arena, int screen_x, int screen_y)
static void action_tux_draw(space_t * space, tux_t * tux, void *p)
{
+ UNUSET(space);
+ UNUSET(p);
+
tux_draw(tux);
}
static void action_item_draw(space_t * space, item_t * item, void *p)
{
+ UNUSET(space);
+ UNUSET(p);
+
item_draw(item);
}
static void action_shot_draw(space_t * space, shot_t * shot, void *p)
{
+ UNUSET(space);
+ UNUSET(p);
+
shot_draw(shot);
}
@@ -372,6 +381,9 @@ void arena_draw(arena_t * arena)
static void action_tux(space_t * space, tux_t * tux, void *p)
{
+ UNUSET(space);
+ UNUSET(p);
+
tux_event(tux);
}
diff --git a/src/base/item.c b/src/base/item.c
index b7299c5..8de0e37 100644
--- a/src/base/item.c
+++ b/src/base/item.c
@@ -280,6 +280,8 @@ static void action_itemevent(space_t * space, item_t * item, void *p)
{
my_time_t currentTime;
+ UNUSET(p);
+
currentTime = timer_get_current_time();
item->count++;
diff --git a/src/base/main.h b/src/base/main.h
index c938eb5..f935972 100644
--- a/src/base/main.h
+++ b/src/base/main.h
@@ -28,6 +28,8 @@
#define DEBUG_MSG(msg,arg...)
#endif
+#define UNUSET(var) if( 0 && var ){}
+
extern char *getParam(char *s);
extern char *getParamElse(char *s1, char *s2);
diff --git a/src/base/proto.c b/src/base/proto.c
index 3038cd8..b1a6799 100644
--- a/src/base/proto.c
+++ b/src/base/proto.c
@@ -100,6 +100,8 @@ void proto_send_hello_client(char *name)
static void action_sendItem(space_t * space, item_t * item, client_t * client)
{
+ UNUSET(space);
+
proto_send_additem_server(PROTO_SEND_ONE, client, item);
}
@@ -242,6 +244,8 @@ void proto_send_status_server(int type, client_t * client)
void proto_recv_status_server(client_t * client, char *msg)
{
+ UNUSET(msg);
+
proto_send_status_server(PROTO_SEND_ONE, client);
}
@@ -878,6 +882,8 @@ void proto_send_module_client(char *msg)
void proto_recv_module_server(client_t * client, char *msg)
{
+ UNUSET(client);
+
module_recv_msg(msg + 7);
}
@@ -917,6 +923,8 @@ void proto_send_ping_client()
void proto_recv_ping_server(client_t * client, char *msg)
{
+ UNUSET(client);
+ UNUSET(msg);
}
void proto_send_ping_server(int type, client_t * client)
@@ -931,6 +939,7 @@ void proto_send_ping_server(int type, client_t * client)
void proto_recv_ping_client(char *msg)
{
+ UNUSET(msg);
}
#endif
diff --git a/src/base/server.c b/src/base/server.c
index bbaf71d..6eeab70 100644
--- a/src/base/server.c
+++ b/src/base/server.c
@@ -162,6 +162,8 @@ static void delZombieCLient(void *p_nothink)
my_time_t currentTime;
int i;
+ UNUSET(p_nothink);
+
currentTime = timer_get_current_time();
for (i = 0; i < listClient->count; i++) {
@@ -190,6 +192,8 @@ static void eventPeriodicSyncClient(void *p_nothink)
tux_t *thisTux;
int i;
+ UNUSET(p_nothink);
+
#ifndef PUBLIC_SERVER
proto_send_newtux_server(PROTO_SEND_ALL_SEES_TUX, NULL, world_get_control_tux(TUX_CONTROL_KEYBOARD_RIGHT));
#endif
@@ -209,6 +213,8 @@ static void eventPeriodicSyncClient(void *p_nothink)
static void eventSendPingClients(void *p_nothink)
{
+ UNUSET(p_nothink);
+
proto_send_ping_server(PROTO_SEND_ALL, NULL);
}
diff --git a/src/base/shot.c b/src/base/shot.c
index 5d55f82..b19877a 100644
--- a/src/base/shot.c
+++ b/src/base/shot.c
@@ -262,6 +262,8 @@ static void action_moveShot(space_t * space, shot_t * shot, void *p)
int new_x, new_y;
arena_t *arena;
+ UNUSET(p);
+
arena = arena_get_current();
new_x = shot->x + shot->px;
@@ -295,6 +297,8 @@ static int isValueInList(list_t * list, int x)
static void action_check(space_t * space, shot_t * shot, client_t * client)
{
+ UNUSET(space);
+
if (isValueInList(client->listSeesShot, shot->id) == 0) {
list_add(client->listSeesShot, newInt(shot->id));
proto_send_shot_server(PROTO_SEND_ONE, client, shot);
diff --git a/src/base/tux.c b/src/base/tux.c
index 5a10c7a..d8fff10 100644
--- a/src/base/tux.c
+++ b/src/base/tux.c
@@ -409,6 +409,8 @@ static void action_tux(space_t * space, tux_t * tux, shot_t * shot)
{
arena_t *arena;
+ UNUSET(space);
+
arena = arena_get_current();
if (tux->status == TUX_STATUS_ALIVE) {
@@ -443,6 +445,8 @@ static void action_tux(space_t * space, tux_t * tux, shot_t * shot)
static void action_shot(space_t * space, shot_t * shot, space_t * spaceTux)
{
+ UNUSET(space);
+
space_action_from_location(spaceTux, action_tux, shot, shot->x, shot->y, shot->w, shot->h);
}
@@ -721,12 +725,17 @@ void tux_set_status(void *p, int x, int y, int w, int h)
{
tux_t *tux;
+ UNUSET(w);
+ UNUSET(h);
+
tux = p;
tux_set_proportion(tux, x, y);
}
static void action_checkMine(space_t * space, item_t * item, tux_t * tux)
{
+ UNUSET(space);
+
if (item->type == ITEM_MINE && item->author_id == tux->id) {
item->author_id = ID_UNKNOWN;
}