[Orxonox-commit 5914] r10573 - code/branches/core7/src/orxonox

landauf at orxonox.net landauf at orxonox.net
Wed Sep 9 13:36:01 CEST 2015


Author: landauf
Date: 2015-09-09 13:36:00 +0200 (Wed, 09 Sep 2015)
New Revision: 10573

Modified:
   code/branches/core7/src/orxonox/Level.cc
Log:
there are no objects_ at this point, so it's not necessary to set the gametype. also, this wouldn't work anyway because objects may have sub-objects and almost none of the classes passes a changed gametype to it's sub-objects

Modified: code/branches/core7/src/orxonox/Level.cc
===================================================================
--- code/branches/core7/src/orxonox/Level.cc	2015-09-09 11:31:11 UTC (rev 10572)
+++ code/branches/core7/src/orxonox/Level.cc	2015-09-09 11:36:00 UTC (rev 10573)
@@ -124,9 +124,6 @@
         rootgametype->setLevel(NULL); // avoid circular references
         this->setGametype(rootgametype);
 
-        for (std::list<BaseObject*>::iterator it = this->objects_.begin(); it != this->objects_.end(); ++it)
-            (*it)->setGametype(rootgametype);
-
         if (LevelManager::exists())
             LevelManager::getInstance().requestActivity(this);
     }




More information about the Orxonox-commit mailing list