[Orxonox-commit 5169] r9834 - code/trunk/src/modules/tetris

jo at orxonox.net jo at orxonox.net
Mon Dec 2 00:19:44 CET 2013


Author: jo
Date: 2013-12-02 00:19:44 +0100 (Mon, 02 Dec 2013)
New Revision: 9834

Modified:
   code/trunk/src/modules/tetris/Tetris.cc
Log:
Fixing another bug introduced by the previous bug fix.

Modified: code/trunk/src/modules/tetris/Tetris.cc
===================================================================
--- code/trunk/src/modules/tetris/Tetris.cc	2013-12-01 22:38:21 UTC (rev 9833)
+++ code/trunk/src/modules/tetris/Tetris.cc	2013-12-01 23:19:44 UTC (rev 9834)
@@ -350,7 +350,11 @@
         bool left = Gametype::playerLeft(player);
         if(player && player->isHumanPlayer())
         {
-            this->end();
+            if(this->activeBrick_ != NULL)
+            {
+                this->player_->stopControl();
+            }
+            this->cleanup();
         }
         return left;
     }




More information about the Orxonox-commit mailing list