ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/item.C
(Generate patch)

Comparing deliantra/server/common/item.C (file contents):
Revision 1.49 by root, Fri Apr 25 11:40:34 2008 UTC vs.
Revision 1.52 by root, Thu Jan 1 11:41:17 2009 UTC

543 * contain any information about object status (worn/cursed/etc.) 543 * contain any information about object status (worn/cursed/etc.)
544 */ 544 */
545const char * 545const char *
546query_short_name (const object *op) 546query_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}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines