Several little fixes

- Fix take_gold function adding to party gold instead of subtracting
- Fix wandering NPCs not appearing if the town was stored in a save slot
- If IF_FIELDS node called while outdoors, skip to jumpto
- If IF_STATISTIC called on selected target with whole party selected, default to cumulative check
This commit is contained in:
2015-01-30 12:58:39 -05:00
parent 2de0b76454
commit e0baecef4d
3 changed files with 4 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ void give_gold(short amount,bool print_result) {
bool take_gold(short amount,bool print_result) {
if(univ.party.gold < amount)
return false;
univ.party.gold += amount;
univ.party.gold -= amount;
if(print_result)
put_pc_screen();
return true;