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

Comparing deliantra/server/random_maps/treasure.C (file contents):
Revision 1.47 by root, Fri Nov 6 13:03:34 2009 UTC vs.
Revision 1.48 by root, Sun Nov 29 17:41:07 2009 UTC

366 if (tlist != NULL) 366 if (tlist != NULL)
367 for (ti = 0; ti < n_treasures; ti++) 367 for (ti = 0; ti < n_treasures; ti++)
368 { /* use the treasure list */ 368 { /* use the treasure list */
369 object *new_treasure = style_map->pick_random_object (rmg_rndm); 369 object *new_treasure = style_map->pick_random_object (rmg_rndm);
370 370
371 insert_ob_in_ob (arch_to_object (new_treasure->arch), the_chest); 371 insert_ob_in_ob (new_treasure->arch->instance (), the_chest);
372 } 372 }
373 else 373 else
374 { /* use the style map */ 374 { /* use the style map */
375 the_chest->randomitems = tlist; 375 the_chest->randomitems = tlist;
376 the_chest->stats.hp = n_treasures; 376 the_chest->stats.hp = n_treasures;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines