[Orxonox-commit 5296] r9959 - code/trunk/src/modules/invader

landauf at orxonox.net landauf at orxonox.net
Fri Jan 3 20:49:30 CET 2014


Author: landauf
Date: 2014-01-03 20:49:30 +0100 (Fri, 03 Jan 2014)
New Revision: 9959

Modified:
   code/trunk/src/modules/invader/Invader.cc
Log:
don't re-initialize the random number generator - we already do this in Core::initRandomNumberGenerator()

Modified: code/trunk/src/modules/invader/Invader.cc
===================================================================
--- code/trunk/src/modules/invader/Invader.cc	2014-01-03 19:29:21 UTC (rev 9958)
+++ code/trunk/src/modules/invader/Invader.cc	2014-01-03 19:49:30 UTC (rev 9959)
@@ -112,7 +112,7 @@
     {
         if (getPlayer() == NULL)
             return;
-        srand(player->getPosition().x + player->getPosition().y);
+
         for (int i = 0; i < (3*log10(static_cast<double>(level)) + 1); i++)
         {
             WeakPtr<InvaderEnemy> newPawn;




More information about the Orxonox-commit mailing list