diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-19 22:46:29 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-19 22:46:29 -0400 |
commit | 150a240098c3b45799ff04411715866b9dc58f4f (patch) | |
tree | a2ce9296ec53f0bdcce7eaeddc3a6292edf5bcf7 /mazeoflife.cpp | |
parent | 1941186fa99ce9a9e333d9ab0deb928937e1ea61 (diff) | |
download | mazeoflife-150a240098c3b45799ff04411715866b9dc58f4f.tar.gz mazeoflife-150a240098c3b45799ff04411715866b9dc58f4f.tar.bz2 mazeoflife-150a240098c3b45799ff04411715866b9dc58f4f.zip |
Fixed solver wrapping issue
Previously, the generated mazes didn't wrap and it would be very difficult to wrap. This has been fixed. Plus, titles have been added to all states and the "gameSleep" variable has been removed due to it's not-usefulness.
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 | ||