CityBudget: do not change funds when changing difficulty level

Before I had implemented the New City dialog box, the only way
to set the difficulty was via the menu after the game started.
Now that the difficulty level can be set before starting the game,
there is no need to give/take money when the difficulty changes.

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@603 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-03-23 15:46:18 +00:00
parent 2c69407d47
commit 93b5422afb

View file

@ -2602,16 +2602,8 @@ public class Micropolis
{
assert GameLevel.isValid(newLevel);
int origFunds = GameLevel.getStartingFunds(gameLevel);
int newFunds = GameLevel.getStartingFunds(newLevel);
int delta = origFunds - newFunds;
gameLevel = newLevel;
fireOptionsChanged();
if (budget.totalFunds > delta) {
spend(delta);
}
}
public void setFunds(int totalFunds)