!GOLDOBJ gold in inventory during save/restore (trunk only)

Simplify the save/restore handling the !GOLDOBJ config does for gold
to maintain save/bones file compatibility with the GOLDOBJ config.
This commit is contained in:
nethack.rankin
2007-01-12 04:18:40 +00:00
parent 187b8dec9f
commit b6778e36cf
6 changed files with 48 additions and 71 deletions

View File

@@ -2260,7 +2260,7 @@ int held;
#ifndef GOLDOBJ
/* if putting in, place gold where inventory traversal will see it */
if ((loot_in || stash_one) && u.ugold)
u_gold = insert_gold_into_invent();
u_gold = insert_gold_into_invent(TRUE);
#endif
if ((loot_in || stash_one) &&
(!invent || (invent == current_container && !invent->nobj))) {