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.93 by root, Tue Jan 3 11:25:30 2012 UTC vs.
Revision 1.94 by root, Fri Jan 27 22:00:39 2012 UTC

476 */ 476 */
477static const char * 477static const char *
478ring_desc (const object *op) 478ring_desc (const object *op)
479{ 479{
480 static dynbuf_text buf; buf.clear (); 480 static dynbuf_text buf; buf.clear ();
481 int attr, val, len; 481 int attr, val;
482 482
483 if (op->flag [FLAG_IDENTIFIED]) 483 if (op->flag [FLAG_IDENTIFIED])
484 { 484 {
485 for (attr = 0; attr < NUM_STATS; attr++) 485 for (attr = 0; attr < NUM_STATS; attr++)
486 if ((val = op->stats.stat (attr))) 486 if ((val = op->stats.stat (attr)))
620 * It is also used by examine/ex and similar functions. 620 * It is also used by examine/ex and similar functions.
621 */ 621 */
622const char * 622const char *
623query_name (const object *op) 623query_name (const object *op)
624{ 624{
625 int len = 0;
626 static dynbuf_text bufs[5]; 625 static dynbuf_text bufs[5];
627 static int use_buf = 0; 626 static int use_buf = 0;
628 627
629 use_buf++; 628 use_buf++;
630 use_buf %= 5; 629 use_buf %= 5;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines