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.92 by root, Sat Aug 13 23:18:20 2011 UTC vs.
Revision 1.94 by root, Fri Jan 27 22:00:39 2012 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992 Frank Tore Johansen 6 * Copyright (©) 1992 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 8 * Deliantra is free software: you can redistribute it and/or modify it under
9 * the terms of the Affero GNU General Public License as published by the 9 * the terms of the Affero GNU General Public License as published by the
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