… | |
… | |
543 | * contain any information about object status (worn/cursed/etc.) |
543 | * contain any information about object status (worn/cursed/etc.) |
544 | */ |
544 | */ |
545 | const char * |
545 | const char * |
546 | query_short_name (const object *op) |
546 | query_short_name (const object *op) |
547 | { |
547 | { |
548 | if (op->name == 0) |
548 | if (!op->name) |
549 | return "(null)"; |
549 | return "(null)"; |
550 | |
550 | |
551 | if (!op->nrof |
551 | if (!op->nrof |
552 | && !op->weight |
552 | && !op->weight |
553 | && !op->title |
553 | && !op->title |
… | |
… | |
813 | */ |
813 | */ |
814 | if (op->has_active_speed ()) |
814 | if (op->has_active_speed ()) |
815 | switch ((int) ((FABS (op->speed)) * 15)) |
815 | switch ((int) ((FABS (op->speed)) * 15)) |
816 | { |
816 | { |
817 | case 0: |
817 | case 0: |
818 | buf << "(very slow movement"; |
818 | buf << "(very slow movement)"; |
819 | break; |
819 | break; |
820 | case 1: |
820 | case 1: |
821 | buf << "(slow movement)"; |
821 | buf << "(slow movement)"; |
822 | break; |
822 | break; |
823 | case 2: |
823 | case 2: |
… | |
… | |
1386 | } |
1386 | } |
1387 | |
1387 | |
1388 | /* If the object is on a map, make sure we update its face */ |
1388 | /* If the object is on a map, make sure we update its face */ |
1389 | if (op->map) |
1389 | if (op->map) |
1390 | update_object (op, UP_OBJ_CHANGE); |
1390 | update_object (op, UP_OBJ_CHANGE); |
|
|
1391 | |
1391 | else if (object *pl = op->visible_to ()) |
1392 | if (object *pl = op->visible_to ()) |
1392 | /* A lot of the values can change from an update - might as well send |
1393 | /* A lot of the values can change from an update - might as well send |
1393 | * it all. |
1394 | * it all. |
1394 | */ |
1395 | */ |
1395 | esrv_send_item (pl, op); |
1396 | esrv_send_item (pl, op); |
1396 | } |
1397 | } |