version 1.36 | | version 1.37 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: request.c,v 1.36 2002/05/19 05:47:43 mwedel Exp $"; | | * "$Id: request.c,v 1.37 2002/05/20 03:11:50 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* if not already done. If the client is using darkness, and | | * if not already done. If the client is using darkness, and |
* this space is at the edge, we also include the darkness. | | * this space is at the edge, we also include the darkness. |
*/ | | */ |
if (d==4 && pl->contr->socket.darkness && pl->contr->socket.lastmap.cells[ax][ay].count != d) { | | if (d==4) { |
| | if (pl->contr->socket.darkness && pl->contr->socket.lastmap.cells[ax][ay].count != d) { |
mask |= 8; | | mask |= 8; |
SockList_AddShort(&sl, mask); | | SockList_AddShort(&sl, mask); |
SockList_AddChar(&sl, 0); | | SockList_AddChar(&sl, 0); |
| | } |
count = d; | | count = d; |
} else { | | } else { |
SockList_AddShort(&sl, mask); | | SockList_AddShort(&sl, mask); |
if (pl->contr->socket.lastmap.cells[ax][ay].count != -1) need_send=1; | | if (pl->contr->socket.lastmap.cells[ax][ay].count != -1) need_send=1; |
count = -1; | | count = -1; |
} | | } |
| | |
if (pl->contr->socket.mapmode == Map1aCmd && have_head(ax, ay)) { | | if (pl->contr->socket.mapmode == Map1aCmd && have_head(ax, ay)) { |
/* Now check to see if any heads need to be sent */ | | /* Now check to see if any heads need to be sent */ |
| | |