summary refs log tree commit diff stats
path: root/mazeoflife.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2009-06-19 22:46:29 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2009-06-19 22:46:29 -0400
commit150a240098c3b45799ff04411715866b9dc58f4f (patch)
treea2ce9296ec53f0bdcce7eaeddc3a6292edf5bcf7 /mazeoflife.cpp
parent1941186fa99ce9a9e333d9ab0deb928937e1ea61 (diff)
downloadmazeoflife-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.cpp8
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
3SDL_Surface *screen; 3SDL_Surface *screen;
4bool gameSleep = false;
5State* state; 4State* state;
6 5
7int main(int argc, char *argv[]) 6int 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