diff options
| author | Dušan Ďurech <dusan.d@centrum.cz> | 2010-07-12 13:59:44 +0200 |
|---|---|---|
| committer | Dušan Ďurech <dusan.d@centrum.cz> | 2010-07-12 13:59:44 +0200 |
| commit | dc757c76c2a33bb54e984a42792dd46e8888b049 (patch) | |
| tree | ac6e0a12d1bd74164ddd6662e79e60a61baad418 | |
| parent | d07d9f5f5dcf0bccbba5a53a013ef4032d999957 (diff) | |
fix bug with shot when tux is turn up
| -rw-r--r-- | src/base/proto.c | 5 |
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) |