version 1.58 | | version 1.59 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: request.c,v 1.58 2004/01/21 08:12:05 mwedel Exp $"; | | * "$Id: request.c,v 1.59 2004/01/31 12:10:52 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
oldlen = sl.len; | | oldlen = sl.len; |
| | |
if (pl->contr->socket.ext_mapinfos){ | | |
SockList_AddShort(&esl, emask); | | |
} | | |
| | |
SockList_AddShort(&sl, mask); | | SockList_AddShort(&sl, mask); |
| | |
| | |
| | |
if (got_one && (mask & 0xf)) { | | if (got_one && (mask & 0xf)) { |
sl.buf[oldlen+1] = mask & 0xff; | | sl.buf[oldlen+1] = mask & 0xff; |
} else { | | } else { /*either all faces blank, either no face at all*/ |
| | if (mask & 0xf) /*at least 1 face, we know it's blank, only send coordinates*/ |
sl.len = oldlen + 2; | | sl.len = oldlen + 2; |
| | else |
| | sl.len = oldlen; |
} | | } |
/*What concerns extendinfos, nothing to be done for now | | /*What concerns extendinfos, nothing to be done for now |
* (perhaps effects layer later) | | * (perhaps effects layer later) |
| | |
*/ | | */ |
| | |
oldlen = sl.len; | | oldlen = sl.len; |
#if 0 | | //#if 0 |
/* First thing we do is blank out this space (clear it) | | // /* First thing we do is blank out this space (clear it) |
* 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) { | | // if (d==4) { |
if (pl->contr->socket.darkness && pl->contr->socket.lastmap.cells[ax][ay].count != d) { | | // 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 |
#endif | | //#endif |
{ | | { |
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; |