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-861f7616d084
master
Buginator 2009-05-03 20:23:03 +00:00 committed by Git SVN Gateway
parent 38cfef4e6d
commit bb848f5582
1 changed files with 12 additions and 0 deletions

View File

@ -265,6 +265,10 @@ BOOL loadConfig(void)
if (getWarzoneKeyString("masterserver_name", sBuf)) if (getWarzoneKeyString("masterserver_name", sBuf))
{ {
NETsetMasterserverName(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 else
{ {
@ -315,6 +319,10 @@ BOOL loadConfig(void)
if (getWarzoneKeyNumeric("masterserver_port", &val)) if (getWarzoneKeyNumeric("masterserver_port", &val))
{ {
NETsetMasterserverPort(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 else
{ {
@ -325,6 +333,10 @@ BOOL loadConfig(void)
if (getWarzoneKeyNumeric("gameserver_port", &val)) if (getWarzoneKeyNumeric("gameserver_port", &val))
{ {
NETsetGameserverPort(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 else
{ {