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

Comparing deliantra/server/server/apply.C (file contents):
Revision 1.213 by elmex, Mon Nov 9 13:38:36 2009 UTC vs.
Revision 1.214 by root, Tue Nov 10 05:11:06 2009 UTC

3879 * treasure again for this object 3879 * treasure again for this object
3880 */ 3880 */
3881 invtmp->randomitems = NULL; 3881 invtmp->randomitems = NULL;
3882 } 3882 }
3883 } 3883 }
3884
3884 /* This is really temporary - the code at the bottom will 3885 /* This is really temporary - the code at the bottom will
3885 * also set randomitems to null. The problem is there are bunches 3886 * also set randomitems to null. The problem is there are bunches
3886 * of maps/players already out there with items that have spells 3887 * of maps/players already out there with items that have spells
3887 * which haven't had the randomitems set to null yet. 3888 * which haven't had the randomitems set to null yet.
3888 * MSW 2004-05-13 3889 * MSW 2004-05-13
3892 * Ryo 2004-08-16 3893 * Ryo 2004-08-16
3893 */ 3894 */
3894 if (tmp->type == WAND || tmp->type == ROD || tmp->type == SCROLL 3895 if (tmp->type == WAND || tmp->type == ROD || tmp->type == SCROLL
3895 || tmp->type == HORN || tmp->type == FIREWALL || tmp->type == POTION || tmp->type == ALTAR || tmp->type == SPELLBOOK) 3896 || tmp->type == HORN || tmp->type == FIREWALL || tmp->type == POTION || tmp->type == ALTAR || tmp->type == SPELLBOOK)
3896 tmp->randomitems = NULL; 3897 tmp->randomitems = NULL;
3897
3898 } 3898 }
3899 3899
3900 if (QUERY_FLAG (tmp, FLAG_AUTO_APPLY)) 3900 if (QUERY_FLAG (tmp, FLAG_AUTO_APPLY))
3901 auto_apply (tmp); 3901 auto_apply (tmp);
3902 else if ((tmp->type == TREASURE || (tmp->type == CONTAINER)) && tmp->has_random_items ()) 3902 else if ((tmp->type == TREASURE || (tmp->type == CONTAINER)) && tmp->has_random_items ())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines