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.24 by root, Tue Dec 12 21:39:56 2006 UTC vs.
Revision 1.25 by root, Tue Dec 12 22:37:05 2006 UTC

448 * it instead takes a treasurelist. It is really just a wrapper around 448 * it instead takes a treasurelist. It is really just a wrapper around
449 * create_treasure. We create a dummy object that the treasure gets 449 * create_treasure. We create a dummy object that the treasure gets
450 * inserted into, and then return that treausre 450 * inserted into, and then return that treausre
451 */ 451 */
452object * 452object *
453generate_treasure (treasurelist * t, int difficulty) 453generate_treasure (treasurelist *t, int difficulty)
454{ 454{
455 difficulty = clamp (difficulty, 1, settings.max_level);
456
455 object *ob = object::create (), *tmp; 457 object *ob = object::create (), *tmp;
456 458
457 create_treasure (t, ob, 0, difficulty, 0); 459 create_treasure (t, ob, 0, difficulty, 0);
458 460
459 /* Don't want to free the object we are about to return */ 461 /* Don't want to free the object we are about to return */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines