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.15 by elmex, Wed Dec 20 14:38:50 2006 UTC vs.
Revision 1.17 by elmex, Wed Jan 3 02:30:51 2007 UTC

867 867
868 /* Note that the resolution this provides for players really isn't 868 /* Note that the resolution this provides for players really isn't
869 * very good. Any player with a speed greater than .67 will 869 * very good. Any player with a speed greater than .67 will
870 * fall into the 'lightning fast movement' category. 870 * fall into the 'lightning fast movement' category.
871 */ 871 */
872 if (FABS (op->speed) > MIN_ACTIVE_SPEED) 872 if (op->has_active_speed ())
873 { 873 {
874 switch ((int) ((FABS (op->speed)) * 15)) 874 switch ((int) ((FABS (op->speed)) * 15))
875 { 875 {
876 case 0: 876 case 0:
877 strcat (retbuf, "(very slow movement)"); 877 strcat (retbuf, "(very slow movement)");
933 { 933 {
934 treasure *t; 934 treasure *t;
935 int first = 1; 935 int first = 1;
936 936
937 for (t = op->randomitems->items; t != NULL; t = t->next) 937 for (t = op->randomitems->items; t != NULL; t = t->next)
938 if (t->item && (t->item->clone.type == SPELL)) 938 if (t->item && t->item->clone.type == SPELL)
939 { 939 {
940 if (first) 940 if (first)
941 { 941 {
942 first = 0; 942 first = 0;
943 strcat (retbuf, "(Spell abilities:)"); 943 strcat (retbuf, "(Spell abilities:)");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines