[Orxonox-commit 7777] r12369 - code/branches/OrxoBlox_FS19/src/modules/OrxoBlox

jeromela at orxonox.net jeromela at orxonox.net
Thu May 16 12:25:11 CEST 2019


Author: jeromela
Date: 2019-05-16 12:25:10 +0200 (Thu, 16 May 2019)
New Revision: 12369

Modified:
   code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
Log:
Zeitpunkt fuer game over festgelegt. Todo: spiel endet mit crash

Modified: code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
===================================================================
--- code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc	2019-05-16 09:11:39 UTC (rev 12368)
+++ code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc	2019-05-16 10:25:10 UTC (rev 12369)
@@ -227,9 +227,13 @@
             int x_=(stone->getPosition()).x;
             int y_=(stone->getPosition()).y;
             int z_=(stone->getPosition()).z;
-            if(z_==90)this->end();
+            //if(z_==90)this->end();
 
             stone->setPosition(x_,y_,z_+9.0f);
+
+            if( z_ >= 45){
+                this->end();
+            }
         }
 
 



More information about the Orxonox-commit mailing list