--- cf.schmorp.de/server/common/treasure.C 2007/04/24 00:42:02 1.57 +++ cf.schmorp.de/server/common/treasure.C 2007/04/28 17:51:57 1.58 @@ -199,8 +199,6 @@ * Add up the chance total, and check to make sure the yes & no * fields of the treasures are not being used. */ - tl->total_chance = 0; - if (one) { for (treasure *t = tl->items; t; t = t->next) @@ -401,6 +399,9 @@ return; } + if (op->flag [FLAG_TREASURE_ENV]) + flag |= GT_ENVIRONMENT; + if (tl->total_chance) create_one_treasure (tl, op, flag, difficulty, tries); else