mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
fixes wrong initialization of max number of objects and npc spaws in egs
This commit is contained in:
parent
16d6357cb6
commit
7cf8de2922
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue