summaryrefslogtreecommitdiff
path: root/src/base/shot.c
diff options
context:
space:
mode:
authorMichal Zima <xhire@mujmalysvet.cz>2010-06-18 13:16:21 +0200
committerMichal Zima <xhire@mujmalysvet.cz>2010-06-18 13:16:21 +0200
commit4024494a1a42cb2dbeebd92b865421308e5d1aae (patch)
treeedff74681837caf6ed078991a0b27f73b16f66c7 /src/base/shot.c
parente7a6a7a14aeea2ee9f2c235d0cbabf0cb3660e89 (diff)
More of the same as in the previous commit
Diffstat (limited to 'src/base/shot.c')
-rw-r--r--src/base/shot.c7
1 files changed, 2 insertions, 5 deletions
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);