Merged in viniciusarroyo/ryzomcore/viniciusarroyo/fixes-wrong-initialization-of-max-number-1470835250351 (pull request #140)

fixes wrong initialization of max number of objects and npc spaws in egs

--HG--
branch : develop
This commit is contained in:
Cédric OCHS 2016-08-10 15:42:27 +02:00
commit 6fa8aa3ce0

View file

@ -1223,12 +1223,12 @@ void CPlayerService::initConfigFileVars()
MaxNbGuilds = 1000;
CConfigFile::CVar *varMaxNbObjects = ConfigFile.getVarPtr("NbObjectsLimit");
if ( varMaxNbPlayers )
if ( varMaxNbObjects )
MaxNbObjects= varMaxNbPlayers->asInt();
else
MaxNbObjects = 1000;
CConfigFile::CVar *varMaxNbNpcSpawnedByEGS = ConfigFile.getVarPtr("NbNpcSpawnedByEGSLimit");
if ( varMaxNbPlayers )
if ( varMaxNbNpcSpawnedByEGS )
MaxNbNpcSpawnedByEGS = varMaxNbPlayers->asInt();
else
MaxNbNpcSpawnedByEGS = 50;