diff options
| author | Dusan Durech <dusan@debian.debian> | 2009-04-22 19:54:52 +0200 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.debian> | 2009-04-22 19:54:52 +0200 |
| commit | 31941d9f3b2a665317503166785a3eb6cef35a9c (patch) | |
| tree | c0740c7c14689593ff405d62f3111f9c326cc2d0 /src/modules/modTeleport.c | |
| parent | f760a8c01827d97affff6acc0ec666b30e26395f (diff) | |
fix _all_ warnings // used macro UNUSET
Diffstat (limited to 'src/modules/modTeleport.c')
| -rw-r--r-- | src/modules/modTeleport.c | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/src/modules/modTeleport.c b/src/modules/modTeleport.c index 4d3a9ca..301a368 100644 --- a/src/modules/modTeleport.c +++ b/src/modules/modTeleport.c @@ -249,9 +249,11 @@ int init(export_fce_t * p) #ifndef PUBLIC_SERVER -static void -action_drawteleport(space_t * space, teleport_t * teleport, void *p) +static void action_drawteleport(space_t * space, teleport_t * teleport, void *p) { + UNUSET(space); + UNUSET(p); + drawTeleport(teleport); } @@ -268,12 +270,13 @@ int draw(int x, int y, int w, int h) } #endif -static void -action_eventteleportshot(space_t * space, teleport_t * teleport, shot_t * shot) +static void action_eventteleportshot(space_t * space, teleport_t * teleport, shot_t * shot) { arena_t *arena; tux_t *author; + UNUSET(space); + arena = export_fce->fce_arena_get_current(); author = space_get_object_id(arena->spaceTux, shot->author_id); @@ -286,24 +289,27 @@ action_eventteleportshot(space_t * space, teleport_t * teleport, shot_t * shot) moveShotFromTeleport(shot, teleport, spaceTeleport); } -static void -action_eventshot(space_t * space, shot_t * shot, space_t * p_spaceTeleport) +static void action_eventshot(space_t * space, shot_t * shot, space_t * p_spaceTeleport) { + UNUSET(space); + space_action_from_location(p_spaceTeleport, action_eventteleportshot, shot, shot->x, shot->y, shot->w, shot->h); } -static void -action_eventteleporttux(space_t * space, teleport_t * teleport, tux_t * tux) +static void action_eventteleporttux(space_t * space, teleport_t * teleport, tux_t * tux) { + UNUSET(space); + teleportTux(tux, teleport); } -static void -action_eventtux(space_t * space, tux_t * tux, space_t * p_spaceTeleport) +static void action_eventtux(space_t * space, tux_t * tux, space_t * p_spaceTeleport) { int x, y, w, h; + UNUSET(space); + export_fce->fce_tux_get_proportion(tux, &x, &y, &w, &h); space_action_from_location(p_spaceTeleport, action_eventteleporttux, tux, x, y, @@ -330,6 +336,11 @@ int event() int isConflict(int x, int y, int w, int h) { + UNUSET(x); + UNUSET(y); + UNUSET(w); + UNUSET(h); + if (spaceTeleport == NULL) { return 0; } @@ -345,6 +356,7 @@ void cmdArena(char *line) void recvMsg(char *msg) { + UNUSET(msg); } int destroy() |