[wpdev-commits] wolfpack ChangeLog,1.105,1.106 spawnregions.cpp,1.77,1.78
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-10-11 20:27:13
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22443 Modified Files: ChangeLog spawnregions.cpp Log Message: spawnregion update Index: spawnregions.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/spawnregions.cpp,v retrieving revision 1.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** spawnregions.cpp 10 Oct 2004 17:51:24 -0000 1.77 --- spawnregions.cpp 11 Oct 2004 20:27:01 -0000 1.78 *************** *** 847,861 **** this->clear(); // clear the std::map ! QStringList DefSections = Definitions::instance()->getSections( WPDT_SPAWNREGION ); ! QStringList::iterator it = DefSections.begin(); ! while ( it != DefSections.end() ) ! { ! const cElement* DefSection = Definitions::instance()->getDefinition( WPDT_SPAWNREGION, *it ); ! cSpawnRegion* toinsert_ = new cSpawnRegion( DefSection ); ! this->insert( make_pair( *it, toinsert_ ) ); ! ++it; } cComponent::load(); } --- 847,865 ---- this->clear(); // clear the std::map ! // Don't load spawnregions if disabled ! if (!Config::instance()->getBool("General", "Disable Spawnregions", false, true)) { ! QStringList DefSections = Definitions::instance()->getSections( WPDT_SPAWNREGION ); ! QStringList::iterator it = DefSections.begin(); ! while ( it != DefSections.end() ) ! { ! const cElement* DefSection = Definitions::instance()->getDefinition( WPDT_SPAWNREGION, *it ); ! cSpawnRegion* toinsert_ = new cSpawnRegion( DefSection ); ! this->insert( make_pair( *it, toinsert_ ) ); ! ++it; ! } } + cComponent::load(); } Index: ChangeLog =================================================================== RCS file: /cvsroot/wpdev/wolfpack/ChangeLog,v retrieving revision 1.105 retrieving revision 1.106 diff -C2 -d -r1.105 -r1.106 *** ChangeLog 11 Oct 2004 19:03:41 -0000 1.105 --- ChangeLog 11 Oct 2004 20:27:01 -0000 1.106 *************** *** 43,46 **** --- 43,47 ---- - Reduced network latency. - Made AI checks occur more often if the npc moves faster. + - Added an option to disable spawnregions alltogether for build servers etc. Wolfpack 12.9.11 Beta (26. September 2004) |