version 1.53 | | version 1.54 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: request.c,v 1.53 2003/10/08 07:20:37 mwedel Exp $"; | | * "$Id: request.c,v 1.54 2003/12/01 05:45:18 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
heads[(sy * MAX_HEAD_POS + sx) * MAX_LAYERS + i] = NULL; | | heads[(sy * MAX_HEAD_POS + sx) * MAX_LAYERS + i] = NULL; |
} | | } |
else { | | else { |
| | /* If this head is stored away, clear it - otherwise, |
| | * there can be cases where a object is on multiple layers - |
| | * we only want to send it once. |
| | */ |
| | face_num = head->face->number; |
| | for (i=0; i<MAP_LAYERS; i++) |
| | if (heads[(by * MAX_HEAD_POS + bx) * MAX_LAYERS + i] && |
| | heads[(by * MAX_HEAD_POS + bx) * MAX_LAYERS + i]->face->number == face_num) |
| | heads[(by * MAX_HEAD_POS + bx) * MAX_LAYERS + i] = NULL; |
| | |
/* First, try to put the new head on the same layer. If that is used up, | | /* First, try to put the new head on the same layer. If that is used up, |
* then find another layer. | | * then find another layer. |
*/ | | */ |