From 93b5422afb2f17cdbeeea95638d5f98df06c79a8 Mon Sep 17 00:00:00 2001 From: "jason@long.name" Date: Sat, 23 Mar 2013 15:46:18 +0000 Subject: [PATCH] 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 --- src/micropolisj/engine/Micropolis.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/micropolisj/engine/Micropolis.java b/src/micropolisj/engine/Micropolis.java index 6a7d0af..156c84d 100644 --- a/src/micropolisj/engine/Micropolis.java +++ b/src/micropolisj/engine/Micropolis.java @@ -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)