[Orxonox-commit 6281] r10938 - code/branches/hoverHS15/src/modules/hover

meierman at orxonox.net meierman at orxonox.net
Mon Dec 7 15:32:10 CET 2015


Author: meierman
Date: 2015-12-07 15:32:10 +0100 (Mon, 07 Dec 2015)
New Revision: 10938

Modified:
   code/branches/hoverHS15/src/modules/hover/Hover.cc
Log:
Removed some warnings

Modified: code/branches/hoverHS15/src/modules/hover/Hover.cc
===================================================================
--- code/branches/hoverHS15/src/modules/hover/Hover.cc	2015-12-07 14:32:07 UTC (rev 10937)
+++ code/branches/hoverHS15/src/modules/hover/Hover.cc	2015-12-07 14:32:10 UTC (rev 10938)
@@ -163,7 +163,7 @@
         }//firsttick end
 
         // Check if ship collided with one of the flags
-        for ( int i = 0; i < flagVector.size(); i++ ){
+        for ( unsigned int i = 0; i < flagVector.size(); i++ ){
             if(flagVector[i]->getCollided()){
                 flagVector[i]->destroyLater();
                 flagVector.erase (flagVector.begin()+i);
@@ -273,7 +273,6 @@
     */
     void Hover::GenerateMaze()
     {
-        int Cells = 0;
 
         for ( eDirection Dir = GetDirection(); Dir != eDirection_Invalid; Dir = GetDirection() )
         {




More information about the Orxonox-commit mailing list