Consistent naming for config reader variables.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -182,11 +182,11 @@ public class GameServer
|
||||
final long serverLoadStart = Chronos.currentTimeMillis();
|
||||
|
||||
// GUI
|
||||
final PropertiesParser interfaceSettings = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
|
||||
Config.ENABLE_GUI = interfaceSettings.getBoolean("EnableGUI", true);
|
||||
final PropertiesParser interfaceConfig = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
|
||||
Config.ENABLE_GUI = interfaceConfig.getBoolean("EnableGUI", true);
|
||||
if (Config.ENABLE_GUI && !GraphicsEnvironment.isHeadless())
|
||||
{
|
||||
Config.DARK_THEME = interfaceSettings.getBoolean("DarkTheme", true);
|
||||
Config.DARK_THEME = interfaceConfig.getBoolean("DarkTheme", true);
|
||||
System.out.println("GameServer: Running in GUI mode.");
|
||||
new Gui();
|
||||
}
|
||||
|
@@ -1435,7 +1435,7 @@ class OlympiadGameTask implements Runnable
|
||||
SystemMessage sm;
|
||||
// Waiting for teleport to arena
|
||||
byte step = 60;
|
||||
for (byte i = Config.ALT_OLY_WAIT_TIME; i > 0; i -= step)
|
||||
for (int i = Config.ALT_OLY_WAIT_TIME; i > 0; i -= step)
|
||||
{
|
||||
sm = new SystemMessage(SystemMessageId.YOU_WILL_BE_MOVED_TO_THE_OLYMPIAD_STADIUM_IN_S1_SECOND_S);
|
||||
sm.addInt(i);
|
||||
|
@@ -64,11 +64,11 @@ public class LoginServer
|
||||
private LoginServer() throws Exception
|
||||
{
|
||||
// GUI
|
||||
final PropertiesParser interfaceSettings = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
|
||||
Config.ENABLE_GUI = interfaceSettings.getBoolean("EnableGUI", true);
|
||||
final PropertiesParser interfaceConfig = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
|
||||
Config.ENABLE_GUI = interfaceConfig.getBoolean("EnableGUI", true);
|
||||
if (Config.ENABLE_GUI && !GraphicsEnvironment.isHeadless())
|
||||
{
|
||||
Config.DARK_THEME = interfaceSettings.getBoolean("DarkTheme", true);
|
||||
Config.DARK_THEME = interfaceConfig.getBoolean("DarkTheme", true);
|
||||
System.out.println("LoginServer: Running in GUI mode.");
|
||||
new Gui();
|
||||
}
|
||||
|
Reference in New Issue
Block a user