Example #1
0
void ChunkManager::update()
{
	if (!planetList.empty()) {
		timeNow = Planet::getTimer().getMilliseconds();

		std::list<Planet*>::iterator i;
		for (i = planetList.begin(); i != planetList.end(); ++i) {
			Planet *planet = *i;

			expirationTime = planet->getChunkLoader()->getExpirationTime();
			for (Ogre::uint32 o = 0; o < 6; ++o) {
				updateNode(planet->getCubeFace(o));
			}
		}
	}
}