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.60 by root, Thu Oct 15 20:12:35 2009 UTC vs.
Revision 1.62 by root, Thu Nov 5 15:43:21 2009 UTC

390 buf.printf (newline ? "%s %d\n" : "(%s %+d)", resist_plus[i], op->resist[i]); 390 buf.printf (newline ? "%s %d\n" : "(%s %+d)", resist_plus[i], op->resist[i]);
391 391
392 return buf; 392 return buf;
393} 393}
394 394
395
396/* 395/*
397 * query_weight(object) returns a character pointer to a static buffer 396 * query_weight(object) returns a character pointer to a static buffer
398 * containing the text-representation of the weight of the given object. 397 * containing the text-representation of the weight of the given object.
399 * The buffer will be overwritten by the next call to query_weight(). 398 * The buffer will be overwritten by the next call to query_weight().
400 * 399 *
637 636
638 buf << query_short_name (op); 637 buf << query_short_name (op);
639 638
640 if (QUERY_FLAG (op, FLAG_INV_LOCKED)) 639 if (QUERY_FLAG (op, FLAG_INV_LOCKED))
641 buf << " *"; 640 buf << " *";
642 if (op->type == CONTAINER && ((op->env && op->env->container == op) || (!op->env && QUERY_FLAG (op, FLAG_APPLIED)))) 641 if (op->is_open_container ())
643 buf << " (open)"; 642 buf << " (open)";
644 643
645 if (QUERY_FLAG (op, FLAG_KNOWN_CURSED)) 644 if (QUERY_FLAG (op, FLAG_KNOWN_CURSED))
646 { 645 {
647 if (QUERY_FLAG (op, FLAG_DAMNED)) 646 if (QUERY_FLAG (op, FLAG_DAMNED))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines