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-861f7616d084master
parent
1a7a19ac60
commit
dcc1654924
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue