frontport r8713

"Actually set the limits if people don't set them.


fixes ticket #1236"
and r8725 "Reset the hash array when needed."



git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8741 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-12-19 00:31:58 +00:00 committed by Git SVN Gateway
parent 1a7a19ac60
commit dcc1654924
1 changed files with 14 additions and 0 deletions

View File

@ -86,6 +86,7 @@
#include "multistat.h"
#include "multirecv.h"
#include "multimenu.h"
#include "multilimit.h"
#include "warzoneconfig.h"
@ -2673,6 +2674,19 @@ void startMultiplayerGame(void)
if (NetPlay.isHost)
{
if (!bLimiterLoaded) // if they set limits, then skip this
{
if (!resLoad("wrf/piestats.wrf", 502))
{
debug(LOG_WARNING, "Unable to load limits. Defaults not set.");
}
else if (!resLoad("wrf/limiter_data.wrf", 503))
{
debug(LOG_WARNING, "Unable to load limits?");
}
resetDataHash(); // need to reset it, since host's data has changed.
createLimitSet();
}
sendOptions();
NEThaltJoining(); // stop new players entering.
ingame.TimeEveryoneIsInGame = 0;