… | |
… | |
1502 | LOG (llevDebug, "need_identify: %s does not need to be id'd\n", op->name); |
1502 | LOG (llevDebug, "need_identify: %s does not need to be id'd\n", op->name); |
1503 | #endif |
1503 | #endif |
1504 | return 0; |
1504 | return 0; |
1505 | } |
1505 | } |
1506 | |
1506 | |
1507 | |
|
|
1508 | /* |
1507 | /* |
1509 | * Supposed to fix face-values as well here, but later. |
1508 | * Supposed to fix face-values as well here, but later. |
1510 | */ |
1509 | */ |
1511 | |
|
|
1512 | void |
1510 | void |
1513 | identify (object *op) |
1511 | identify (object *op) |
1514 | { |
1512 | { |
1515 | object *pl; |
1513 | object *pl; |
1516 | |
1514 | |
… | |
… | |
1538 | /* If the object is on a map, make sure we update its face */ |
1536 | /* If the object is on a map, make sure we update its face */ |
1539 | if (op->map) |
1537 | if (op->map) |
1540 | update_object (op, UP_OBJ_FACE); |
1538 | update_object (op, UP_OBJ_FACE); |
1541 | else |
1539 | else |
1542 | { |
1540 | { |
1543 | pl = is_player_inv (op->env); |
1541 | pl = op->in_player (); |
1544 | if (pl) |
1542 | if (pl) |
1545 | /* A lot of the values can change from an update - might as well send |
1543 | /* A lot of the values can change from an update - might as well send |
1546 | * it all. |
1544 | * it all. |
1547 | */ |
1545 | */ |
1548 | esrv_send_item (pl, op); |
1546 | esrv_send_item (pl, op); |
1549 | } |
1547 | } |
1550 | } |
1548 | } |
|
|
1549 | |