From f1ebdbfdbe4d3ce7fc6eaa6a164134b06cfb9603 Mon Sep 17 00:00:00 2001 From: Tomas 'ZeXx86' Jedrzejek Date: Thu, 10 Dec 2009 17:38:09 +0100 Subject: Total conversion of the shared modules to static, fix warning in arenaFile.c, improvements in some areas of a code --- src/modules/modMove.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'src/modules/modMove.c') diff --git a/src/modules/modMove.c b/src/modules/modMove.c index 7c7a862..95157f9 100644 --- a/src/modules/modMove.c +++ b/src/modules/modMove.c @@ -160,7 +160,7 @@ static void move_shot(shot_t *shot, int position, int src_x, int src_y, int dist } } -int init(export_fce_t *p) +static int init(export_fce_t *p) { export_fce = p; export_fce->fce_share_function_add("move_tux", (void *) move_tux); @@ -216,7 +216,7 @@ static void proto_moveshot(char *msg) } #ifndef PUBLIC_SERVER -int draw(int x, int y, int w, int h) +static int draw(int x, int y, int w, int h) { UNUSED(x); UNUSED(y); @@ -227,12 +227,12 @@ int draw(int x, int y, int w, int h) } #endif -int event() +static int event() { return 0; } -int isConflict(int x, int y, int w, int h) +static int isConflict(int x, int y, int w, int h) { UNUSED(x); UNUSED(y); @@ -242,12 +242,12 @@ int isConflict(int x, int y, int w, int h) return 0; } -void cmdArena(char *line) +static void cmdArena(char *line) { UNUSED(line); } -void recvMsg(char *msg) +static void recvMsg(char *msg) { if (export_fce->fce_net_multiplayer_get_game_type() == NET_GAME_TYPE_SERVER) { return; @@ -259,7 +259,15 @@ void recvMsg(char *msg) proto_moveshot(msg); } -int destroy() +static int destroy() { return 0; } + +mod_sym_t modmove_sym = { &init, + &draw, + &event, + &isConflict, + &cmdArena, + &recvMsg, + &destroy }; -- cgit v1.2.3