1 | /* |
1 | /* |
2 | * static char *rcsid_init_c = |
2 | * static char *rcsid_init_c = |
3 | * "$Id: request.C,v 1.13 2006/09/03 00:18:43 root Exp $"; |
3 | * "$Id: request.C,v 1.15 2006/09/07 20:03:21 pippijn Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
241 | void MapInfoCmd (char *buf, int len, player *pl) |
241 | void MapInfoCmd (char *buf, int len, player *pl) |
242 | { |
242 | { |
243 | // <mapinfo tag spatial tile-path |
243 | // <mapinfo tag spatial tile-path |
244 | // >mapinfo tag spatial flags x y w h hash |
244 | // >mapinfo tag spatial flags x y w h hash |
245 | |
245 | |
246 | char bigbuf[MAX_BUF], *cp, *token; |
246 | char bigbuf[MAX_BUF], *token; |
247 | |
247 | |
248 | token = buf; |
248 | token = buf; |
249 | // copy token |
249 | // copy token |
250 | if (!(buf = strchr (buf, ' '))) |
250 | if (!(buf = strchr (buf, ' '))) |
251 | return; |
251 | return; |
… | |
… | |
1874 | |
1874 | |
1875 | if (op->type == PLAYER && op != pl) |
1875 | if (op->type == PLAYER && op != pl) |
1876 | player = op->count; |
1876 | player = op->count; |
1877 | } |
1877 | } |
1878 | |
1878 | |
1879 | if (lastcell.stat_hp != stat_hp && 0) |
1879 | if (lastcell.stat_hp != stat_hp) |
1880 | { |
1880 | { |
1881 | lastcell.stat_hp = stat_hp; |
1881 | lastcell.stat_hp = stat_hp; |
1882 | |
1882 | |
1883 | mask |= 0x8; |
1883 | mask |= 0x8; |
1884 | *last_ext |= 0x80; last_ext = sl.buf + sl.len; SockList_AddChar (&sl, 5); |
1884 | *last_ext |= 0x80; last_ext = sl.buf + sl.len; SockList_AddChar (&sl, 5); |
… | |
… | |
1889 | *last_ext |= 0x80; last_ext = sl.buf + sl.len; SockList_AddChar (&sl, 6); |
1889 | *last_ext |= 0x80; last_ext = sl.buf + sl.len; SockList_AddChar (&sl, 6); |
1890 | SockList_AddChar (&sl, stat_width); |
1890 | SockList_AddChar (&sl, stat_width); |
1891 | } |
1891 | } |
1892 | } |
1892 | } |
1893 | |
1893 | |
1894 | if (lastcell.player != player && 0) |
1894 | if (lastcell.player != player) |
1895 | { |
1895 | { |
1896 | lastcell.player = player; |
1896 | lastcell.player = player; |
1897 | mask |= 0x8; |
1897 | mask |= 0x8; |
1898 | *last_ext |= 0x80; last_ext = sl.buf + sl.len; SockList_AddChar (&sl, 0x47); |
1898 | *last_ext |= 0x80; last_ext = sl.buf + sl.len; SockList_AddChar (&sl, 0x47); |
1899 | SockList_AddChar (&sl, 4); |
1899 | SockList_AddChar (&sl, 4); |