summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game.cpp4
-rw-r--r--src/game/globals.hpp (renamed from src/game/game.hpp)2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 3a7f7dc..4f6ef41 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -1,7 +1,9 @@
#include <iostream>
-#include "game.hpp"
+#include "globals.hpp"
using namespace std;
+bool inGame = false;
+
void game(int diff){
int boardWidth;
int boardHeight;
diff --git a/src/game/game.hpp b/src/game/globals.hpp
index 83ff6fa..6dfd429 100644
--- a/src/game/game.hpp
+++ b/src/game/globals.hpp
@@ -1,7 +1,7 @@
#ifndef GAME_HPP
#define GAME_HPP
-bool inGame = false;
+extern bool inGame;
void game(int diff);
#endif