Browse Source

game state was not cleaned up properly

Kajetan Johannes Hammerle 4 năm trước cách đây
mục cha
commit
df0bea33f1
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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++) {