Pārlūkot izejas kodu

game state was not cleaned up properly

Kajetan Johannes Hammerle 4 gadi atpakaļ
vecāks
revīzija
df0bea33f1
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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++) {