summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDušan Ďurech <dusan.d@centrum.cz>2010-07-12 13:59:44 +0200
committerDušan Ďurech <dusan.d@centrum.cz>2010-07-12 13:59:44 +0200
commitdc757c76c2a33bb54e984a42792dd46e8888b049 (patch)
treeac6e0a12d1bd74164ddd6662e79e60a61baad418 /src
parentd07d9f5f5dcf0bccbba5a53a013ef4032d999957 (diff)
fix bug with shot when tux is turn up
Diffstat (limited to 'src')
-rw-r--r--src/base/proto.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/base/proto.c b/src/base/proto.c
index 4a9e2bb..2b62ba2 100644
--- a/src/base/proto.c
+++ b/src/base/proto.c
@@ -727,7 +727,8 @@ void proto_send_shot_server(int type, client_t *client, shot_t *p)
assert(p != NULL);
snprintf(msg, STR_PROTO_SIZE, "shot %d %d %d %d %d %d %d %d %d\n",
- p->id, p->x-p->px*8, p->y-p->py*8, p->px, p->py, p->position, p->gun,
+// p->id, p->x-p->px*8, p->y-p->py*8, p->px, p->py, p->position, p->gun,
+ p->id, p->x, p->y, p->px, p->py, p->position, p->gun,
p->author_id, p->isCanKillAuthor);
/*
@@ -771,6 +772,8 @@ void proto_recv_shot_client(char *msg)
}
space_add(arena_get_current()->spaceShot, shot);
+
+ printf("ADD new shot id=%d px=%d py=%d position=%d\n", shot_id, px, py, position);
}
void proto_send_chat_client(char *s)