diff options
| author | Dusan Durech <dusan@debian.(none)> | 2009-11-28 12:29:27 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.(none)> | 2009-11-28 12:29:27 +0100 |
| commit | e68fe427c0e608f233e3181e992d4fda5e43b6d2 (patch) | |
| tree | 6d8430515e8eda88f0f5de1161b019d7d9052ddd /src | |
| parent | 16a67a95379d3c3074df933aa4a752dac8294f50 (diff) | |
fix bug with call function from elf binary in module
Diffstat (limited to 'src')
| -rw-r--r-- | src/base/modules.c | 1 | ||||
| -rw-r--r-- | src/base/modules.h | 2 | ||||
| -rw-r--r-- | src/modules/modPipe.c | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/base/modules.c b/src/base/modules.c index 5e4e32e..aace319 100644 --- a/src/base/modules.c +++ b/src/base/modules.c @@ -46,6 +46,7 @@ static export_fce_t export_fce = { .fce_arena_find_free_space = arena_find_free_space, .fce_proto_send_module_server = proto_send_module_server, + .fce_proto_send_del_server = proto_send_del_server, #ifndef PUBLIC_SERVER .fce_proto_send_module_client = proto_send_module_client, #endif /* PUBLIC_SERVER */ diff --git a/src/base/modules.h b/src/base/modules.h index 4ac48b3..a811995 100644 --- a/src/base/modules.h +++ b/src/base/modules.h @@ -40,6 +40,8 @@ typedef struct export_fce_s { int x2, int y2, int w2, int h2); int (*fce_arena_is_free_space) (arena_t *arena, int x, int y, int w, int h); void (*fce_arena_find_free_space) (arena_t *arena, int *x, int *y, int w, int h); + + void (*fce_proto_send_del_server)(int type, client_t *client, int id); void (*fce_proto_send_module_server) (int type, client_t *client, char *msg); void (*fce_proto_send_module_client) (char *msg); diff --git a/src/modules/modPipe.c b/src/modules/modPipe.c index 297fc51..f8d1e1a 100644 --- a/src/modules/modPipe.c +++ b/src/modules/modPipe.c @@ -281,8 +281,8 @@ static void action_eventshot(space_t *space, shot_t *shot, space_t *p_spacePipe) space_action_from_location(p_spacePipe, action_eventpipe, shot, shot->x, shot->y, shot->w, shot->h); if (shot->del == TRUE) { - if (net_multiplayer_get_game_type() == NET_GAME_TYPE_SERVER) { - proto_send_del_server(PROTO_SEND_ALL, NULL, shot->id); + if (export_fce->fce_net_multiplayer_get_game_type() == NET_GAME_TYPE_SERVER) { + export_fce->fce_proto_send_del_server(PROTO_SEND_ALL, NULL, shot->id); } space_del_with_item(space, shot, export_fce->fce_shot_destroy); |