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

Comparing deliantra/server/server/gods.C (file contents):
Revision 1.58 by root, Fri Apr 2 03:41:25 2010 UTC vs.
Revision 1.59 by root, Mon Apr 5 17:28:12 2010 UTC

285 * Unapplies up to number worth of items of type 285 * Unapplies up to number worth of items of type
286 */ 286 */
287static void 287static void
288stop_using_item (object *op, int type, int number) 288stop_using_item (object *op, int type, int number)
289{ 289{
290 object *tmp;
291
292 for (tmp = op->inv; tmp && number; tmp = tmp->below) 290 for (object *tmp = op->inv; tmp && number; tmp = tmp->below)
293 if (tmp->type == type && QUERY_FLAG (tmp, FLAG_APPLIED)) 291 if (tmp->type == type && tmp->flag [FLAG_APPLIED])
294 { 292 {
295 apply_special (op, tmp, AP_UNAPPLY | AP_IGNORE_CURSE); 293 op->apply (tmp, AP_UNAPPLY | AP_IGNORE_CURSE);
296 number--; 294 --number;
297 } 295 }
298} 296}
299 297
300/** 298/**
301 * If the god does/doesnt have this flag, we 299 * If the god does/doesnt have this flag, we

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines