cleanup: remove duplicate definitions of min/max game level

i.e.
removed Micropolis.MIN_LEVEL and Micropolis.MAX_LEVEL
as it was superceded by
GameLevel.MIN_LEVEL and GameLevel.MAX_LEVEL

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@540 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-02-17 20:58:31 +00:00
parent 9943df80f4
commit 0255ae0744
2 changed files with 1 additions and 3 deletions

View file

@ -100,8 +100,6 @@ public class Micropolis
public Speed simSpeed = Speed.NORMAL;
public boolean noDisasters = false;
public static final int MIN_LEVEL = 0;
public static final int MAX_LEVEL = 2;
public int gameLevel;
boolean autoGo;

View file

@ -1244,7 +1244,7 @@ public class MainWindow extends JFrame
{
priorityMenuItems.get(spd).setSelected(getEngine().simSpeed == spd);
}
for (int i = Micropolis.MIN_LEVEL; i <= Micropolis.MAX_LEVEL; i++)
for (int i = GameLevel.MIN_LEVEL; i <= GameLevel.MAX_LEVEL; i++)
{
difficultyMenuItems.get(i).setSelected(getEngine().gameLevel == i);
}