From 150a240098c3b45799ff04411715866b9dc58f4f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 19 Jun 2009 22:46:29 -0400 Subject: 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. --- mazeoflife.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'mazeoflife.cpp') diff --git a/mazeoflife.cpp b/mazeoflife.cpp index e962f2e..4ec9250 100644 --- a/mazeoflife.cpp +++ b/mazeoflife.cpp @@ -1,7 +1,6 @@ #include "includes.h" SDL_Surface *screen; -bool gameSleep = false; State* state; int main(int argc, char *argv[]) @@ -42,13 +41,6 @@ int main(int argc, char *argv[]) { switch (anEvent.type) { - case SDL_ACTIVEEVENT: - if (anEvent.active.state == SDL_APPINPUTFOCUS) - { - gameSleep = !anEvent.active.gain; - } - - break; case SDL_QUIT: exit(0); -- cgit 1.4.1