version 1.47 | | version 1.48 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: request.c,v 1.47 2003/03/19 08:04:51 mwedel Exp $"; | | * "$Id: request.c,v 1.48 2003/04/02 08:13:31 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
| | |
oldlen = sl.len; | | oldlen = sl.len; |
| | #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. |
| | |
SockList_AddChar(&sl, 0); | | SockList_AddChar(&sl, 0); |
} | | } |
count = d; | | count = d; |
} else { | | } else |
| | #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; |
count = -1; | | count = -1; |
| | |
return; | | return; |
} | | } |
| | |
| | if(pl->map == NULL || pl->map->in_memory != MAP_IN_MEMORY) { |
| | LOG(llevError,"draw_client_map called with no map/map out of memory\n"); |
| | return; |
| | } |
| | |
| | |
/* IF player is just joining the game, he isn't here yet, so the map | | /* IF player is just joining the game, he isn't here yet, so the map |
* can get swapped out. If so, don't try to send them a map. All will | | * can get swapped out. If so, don't try to send them a map. All will |
* be OK once they really log in. | | * be OK once they really log in. |