diff options
| author | Tomas 'ZeXx86' Jedrzejek <zexx86@gmail.com> | 2009-12-10 17:38:09 +0100 |
|---|---|---|
| committer | Tomas 'ZeXx86' Jedrzejek <zexx86@gmail.com> | 2009-12-10 17:38:09 +0100 |
| commit | f1ebdbfdbe4d3ce7fc6eaa6a164134b06cfb9603 (patch) | |
| tree | ab298dc2b7730d6009cec40b69a31044de86c501 /src/modules/modMove.c | |
| parent | cee6589f0dc39ffdbfe2c8faa1e8a0c40f848257 (diff) | |
Total conversion of the shared modules to static, fix warning in arenaFile.c, improvements in some areas of a
code
Diffstat (limited to 'src/modules/modMove.c')
| -rw-r--r-- | src/modules/modMove.c | 22 |
1 files changed, 15 insertions, 7 deletions
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 }; |