diff options
| author | Dusan Durech <dusan@debian.debian> | 2009-03-26 15:04:00 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.debian> | 2009-03-26 15:04:00 +0100 |
| commit | e5e0724740215565404dba837f8c3072f9fe7413 (patch) | |
| tree | 39d80e50e12a9fffe47834cd375212017b22025b /src/modules/modTeleport.c | |
| parent | df1f2b7cccb241db5500453aa65d11896f54ce6d (diff) | |
fix warnings...
Diffstat (limited to 'src/modules/modTeleport.c')
| -rw-r--r-- | src/modules/modTeleport.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/modTeleport.c b/src/modules/modTeleport.c index 492de5b..8f74eca 100644 --- a/src/modules/modTeleport.c +++ b/src/modules/modTeleport.c @@ -168,13 +168,13 @@ static void cmd_teleport(char *line) static teleport_t *getRandomTeleportBut(space_t * space, teleport_t * teleport) { - int index; + int my_index; do { - index = random() % getSpaceCount(space); - } while (getItemFromSpace(space, index) == teleport); + my_index = random() % getSpaceCount(space); + } while (getItemFromSpace(space, my_index) == teleport); - return (teleport_t *) getItemFromSpace(space, index); + return (teleport_t *) getItemFromSpace(space, my_index); } static int getRandomPosition() @@ -287,9 +287,9 @@ action_eventteleportshot(space_t * space, teleport_t * teleport, shot_t * shot) } static void -action_eventshot(space_t * space, shot_t * shot, space_t * spaceTeleport) +action_eventshot(space_t * space, shot_t * shot, space_t * p_spaceTeleport) { - actionSpaceFromLocation(spaceTeleport, action_eventteleportshot, shot, + actionSpaceFromLocation(p_spaceTeleport, action_eventteleportshot, shot, shot->x, shot->y, shot->w, shot->h); } @@ -300,13 +300,13 @@ action_eventteleporttux(space_t * space, teleport_t * teleport, tux_t * tux) } static void -action_eventtux(space_t * space, tux_t * tux, space_t * spaceTeleport) +action_eventtux(space_t * space, tux_t * tux, space_t * p_spaceTeleport) { int x, y, w, h; export_fce->fce_getTuxProportion(tux, &x, &y, &w, &h); - actionSpaceFromLocation(spaceTeleport, action_eventteleporttux, tux, x, y, + actionSpaceFromLocation(p_spaceTeleport, action_eventteleporttux, tux, x, y, w, h); } |