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:
parent
9943df80f4
commit
0255ae0744
2 changed files with 1 additions and 3 deletions
|
@ -100,8 +100,6 @@ public class Micropolis
|
||||||
public Speed simSpeed = Speed.NORMAL;
|
public Speed simSpeed = Speed.NORMAL;
|
||||||
public boolean noDisasters = false;
|
public boolean noDisasters = false;
|
||||||
|
|
||||||
public static final int MIN_LEVEL = 0;
|
|
||||||
public static final int MAX_LEVEL = 2;
|
|
||||||
public int gameLevel;
|
public int gameLevel;
|
||||||
|
|
||||||
boolean autoGo;
|
boolean autoGo;
|
||||||
|
|
|
@ -1244,7 +1244,7 @@ public class MainWindow extends JFrame
|
||||||
{
|
{
|
||||||
priorityMenuItems.get(spd).setSelected(getEngine().simSpeed == spd);
|
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);
|
difficultyMenuItems.get(i).setSelected(getEngine().gameLevel == i);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue