Recalculate shop prices before giving money back on sold items.

This fixes a bug where one could get more than half the item price back. In
particularly, a level 2 Plasma Cooling Booster would sell for more than you
bought it for.

This fixes Debian bug #253380.
This commit is contained in:
Guus Sliepen 2011-08-26 15:35:03 +02:00
parent 3d1b5ab67b
commit c710b8df7c
1 changed files with 1 additions and 0 deletions

View File

@ -710,6 +710,7 @@ void sell(int i)
break;
}
adjustShopPrices();
currentGame.cash += (shopItems[i].price / 2);
}