From 4024494a1a42cb2dbeebd92b865421308e5d1aae Mon Sep 17 00:00:00 2001 From: Michal Zima Date: Fri, 18 Jun 2010 13:16:21 +0200 Subject: More of the same as in the previous commit --- src/base/shot.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/base/shot.c') diff --git a/src/base/shot.c b/src/base/shot.c index 168e889..0d30750 100644 --- a/src/base/shot.c +++ b/src/base/shot.c @@ -175,7 +175,7 @@ void shot_draw_list(list_t *listShot) static int getRandomCourse(int x, int y) { - int ret = -1; /* no warnings */ + int ret = -1; do { switch (random() % 3) { @@ -233,6 +233,7 @@ void shot_transform_lasser(shot_t *shot) shot->img = g_shot_lasserX; #endif /* PUBLIC_SERVER */ break; + case TUX_UP: case TUX_DOWN: shot->w = GUN_SHOT_VERTICAL; @@ -253,8 +254,6 @@ static void action_moveShot(space_t *space, shot_t *shot, void *p) int new_x, new_y; arena_t *arena; - UNUSED(p); - arena = arena_get_current(); new_x = shot->x + shot->px; @@ -288,8 +287,6 @@ static int isValueInList(list_t *list, int x) static void action_check(space_t *space, shot_t *shot, client_t *client) { - UNUSED(space); - if (isValueInList(client->listSeesShot, shot->id) == 0) { list_add(client->listSeesShot, newInt(shot->id)); proto_send_shot_server(PROTO_SEND_ONE, client, shot); -- cgit v1.2.3