version 1.22 | | version 1.23 |
---|
| | |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: object.c,v 1.22 2001/04/28 05:54:32 mwedel Exp $"; | | * "$Id: object.c,v 1.23 2001/04/30 03:36:35 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
/* Can be null if the player has quit but window still exists. */ | | /* Can be null if the player has quit but window still exists. */ |
if (op->map->map != NULL) { | | if (op->map->map != NULL) { |
| | object *tmp; |
player=update_position (op->map, op->x, op->y); | | player=update_position (op->map, op->x, op->y); |
| | |
/* Special check here. If a player is on this space, and the | | /* Special check here. If a player is on this space, and the |
| | |
* space to be updated. | | * space to be updated. |
*/ | | */ |
if (player && player!=op && op->speed < MIN_ACTIVE_SPEED && !op->invisible) { | | if (player && player!=op && op->speed < MIN_ACTIVE_SPEED && !op->invisible) { |
player->contr->socket.update_look=1; | | |
} | | |
| | |
#if 0 | | |
if (player && player!=op && !player->contr->socket.update_look) { | | |
player->contr->socket.update_look=1; | | |
for (tmp=op; tmp!=NULL; tmp=tmp->above) | | for (tmp=op; tmp!=NULL; tmp=tmp->above) |
if (QUERY_FLAG(tmp,FLAG_IS_FLOOR) && !tmp->invisible) break; | | if (QUERY_FLAG(tmp,FLAG_IS_FLOOR) && !tmp->invisible) break; |
| | |
if (!tmp) esrv_update_item_func(UPD_FACE, player, op); | | if (!tmp) esrv_update_item_func(UPD_FACE, player, op); |
} | | } |
#endif | | |
} | | } |
| | |
if(op->more!=NULL) | | if(op->more!=NULL) |