Explorar el Código

game state was not cleaned up properly

Kajetan Johannes Hammerle hace 4 años
padre
commit
df0bea33f1
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      Game.cpp

+ 2 - 0
Game.cpp

@@ -8,6 +8,8 @@ Game::Game() : activeX(-1), activeY(-1), directionX(0), directionY(0), state(SEL
 }
 
 void Game::reset() {
+    state = SELECTION;
+    lastLocation = 0;
     activeX = -1;
     activeY = -1;
     for(uint x = 0; x < 9; x++) {