Add error messages in case the values we have read in from the config file don't match the default values.
In fact, I am not really sure why we allow those to be changed when we release a new version? git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7309 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
38cfef4e6d
commit
bb848f5582
|
@ -265,6 +265,10 @@ BOOL loadConfig(void)
|
|||
if (getWarzoneKeyString("masterserver_name", sBuf))
|
||||
{
|
||||
NETsetMasterserverName(sBuf);
|
||||
if (stricmp(sBuf, "lobby.wz2100.net") != 0)
|
||||
{
|
||||
debug(LOG_ERROR, "We are not using lobby.wz2100.net, for the master server name, we are using %s instead?", sBuf);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -315,6 +319,10 @@ BOOL loadConfig(void)
|
|||
if (getWarzoneKeyNumeric("masterserver_port", &val))
|
||||
{
|
||||
NETsetMasterserverPort(val);
|
||||
if (val != 9990)
|
||||
{
|
||||
debug(LOG_ERROR, "We are not using port 9990 (which is the default Master server port), we are using %d?", val);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -325,6 +333,10 @@ BOOL loadConfig(void)
|
|||
if (getWarzoneKeyNumeric("gameserver_port", &val))
|
||||
{
|
||||
NETsetGameserverPort(val);
|
||||
if (val != 2100)
|
||||
{
|
||||
debug(LOG_ERROR, "We are not using port 2100 (which is the default Game server port), we are using %d?", val);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue