diff options
Diffstat (limited to 'mazeoflife.cpp')
-rw-r--r-- | mazeoflife.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mazeoflife.cpp b/mazeoflife.cpp index e962f2e..4ec9250 100644 --- a/mazeoflife.cpp +++ b/mazeoflife.cpp | |||
@@ -1,7 +1,6 @@ | |||
1 | #include "includes.h" | 1 | #include "includes.h" |
2 | 2 | ||
3 | SDL_Surface *screen; | 3 | SDL_Surface *screen; |
4 | bool gameSleep = false; | ||
5 | State* state; | 4 | State* state; |
6 | 5 | ||
7 | int main(int argc, char *argv[]) | 6 | int main(int argc, char *argv[]) |
@@ -42,13 +41,6 @@ int main(int argc, char *argv[]) | |||
42 | { | 41 | { |
43 | switch (anEvent.type) | 42 | switch (anEvent.type) |
44 | { | 43 | { |
45 | case SDL_ACTIVEEVENT: | ||
46 | if (anEvent.active.state == SDL_APPINPUTFOCUS) | ||
47 | { | ||
48 | gameSleep = !anEvent.active.gain; | ||
49 | } | ||
50 | |||
51 | break; | ||
52 | case SDL_QUIT: | 44 | case SDL_QUIT: |
53 | exit(0); | 45 | exit(0); |
54 | 46 | ||