mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 08:46:19 +00:00
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
This commit is contained in:
commit
a281290174
1 changed files with 2 additions and 2 deletions
|
@ -1223,12 +1223,12 @@ void CPlayerService::initConfigFileVars()
|
||||||
MaxNbGuilds = 1000;
|
MaxNbGuilds = 1000;
|
||||||
|
|
||||||
CConfigFile::CVar *varMaxNbObjects = ConfigFile.getVarPtr("NbObjectsLimit");
|
CConfigFile::CVar *varMaxNbObjects = ConfigFile.getVarPtr("NbObjectsLimit");
|
||||||
if ( varMaxNbPlayers )
|
if ( varMaxNbObjects )
|
||||||
MaxNbObjects= varMaxNbPlayers->asInt();
|
MaxNbObjects= varMaxNbPlayers->asInt();
|
||||||
else
|
else
|
||||||
MaxNbObjects = 1000;
|
MaxNbObjects = 1000;
|
||||||
CConfigFile::CVar *varMaxNbNpcSpawnedByEGS = ConfigFile.getVarPtr("NbNpcSpawnedByEGSLimit");
|
CConfigFile::CVar *varMaxNbNpcSpawnedByEGS = ConfigFile.getVarPtr("NbNpcSpawnedByEGSLimit");
|
||||||
if ( varMaxNbPlayers )
|
if ( varMaxNbNpcSpawnedByEGS )
|
||||||
MaxNbNpcSpawnedByEGS = varMaxNbPlayers->asInt();
|
MaxNbNpcSpawnedByEGS = varMaxNbPlayers->asInt();
|
||||||
else
|
else
|
||||||
MaxNbNpcSpawnedByEGS = 50;
|
MaxNbNpcSpawnedByEGS = 50;
|
||||||
|
|
Loading…
Reference in a new issue