From: <lpa...@us...> - 2018-02-16 21:26:27
|
Revision: 9999 http://sourceforge.net/p/planeshift/code/9999 Author: lpancallo Date: 2018-02-16 21:26:24 +0000 (Fri, 16 Feb 2018) Log Message: ----------- Added few comments to clarify how RepopulateItems works Modified Paths: -------------- trunk/src/server/spawnmanager.cpp Modified: trunk/src/server/spawnmanager.cpp =================================================================== --- trunk/src/server/spawnmanager.cpp 2017-08-29 11:53:55 UTC (rev 9998) +++ trunk/src/server/spawnmanager.cpp 2018-02-16 21:26:24 UTC (rev 9999) @@ -569,6 +569,7 @@ psCharacter** chardatalist = NULL; int count; + // Loads all the data of NPCs without spawning them yet chardatalist = psServer::CharacterLoader.LoadAllNPCCharacterData(sectorinfo,count); if(chardatalist==NULL) { @@ -576,6 +577,7 @@ return; } + // for each of the NPCs found and "spawnable", it calls entityManager to create the new gemNPC and spawns it for(int i=0; i<count; i++) { if(chardatalist[i] != NULL) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |