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

Comparing deliantra/server/common/treasure.C (file contents):
Revision 1.58 by root, Sat Apr 28 17:51:57 2007 UTC vs.
Revision 1.59 by root, Sun Apr 29 00:19:16 2007 UTC

398 LOG (llevDebug, "createtreasure: tries exceeded 100, returning without making treasure\n"); 398 LOG (llevDebug, "createtreasure: tries exceeded 100, returning without making treasure\n");
399 return; 399 return;
400 } 400 }
401 401
402 if (op->flag [FLAG_TREASURE_ENV]) 402 if (op->flag [FLAG_TREASURE_ENV])
403 {
404 // do not generate items when there already is something above the object
405 if (op->flag [FLAG_IS_FLOOR] && op->above)
406 return;
407
403 flag |= GT_ENVIRONMENT; 408 flag |= GT_ENVIRONMENT;
409 }
404 410
405 if (tl->total_chance) 411 if (tl->total_chance)
406 create_one_treasure (tl, op, flag, difficulty, tries); 412 create_one_treasure (tl, op, flag, difficulty, tries);
407 else 413 else
408 create_all_treasures (tl->items, op, flag, difficulty, tries); 414 create_all_treasures (tl->items, op, flag, difficulty, tries);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines