diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-10-18 15:24:07 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-10-18 15:24:07 -0400 |
commit | c027f1b9cd6c9deb60931a7f9f75bb4ee130291b (patch) | |
tree | 49426a9cf3ee24434141c903b01481110b2808b6 /titlestate.cpp | |
parent | a157cd82a86390f1fcb1a2086f86af5187e85a69 (diff) | |
download | mazeoflife-c027f1b9cd6c9deb60931a7f9f75bb4ee130291b.tar.gz mazeoflife-c027f1b9cd6c9deb60931a7f9f75bb4ee130291b.tar.bz2 mazeoflife-c027f1b9cd6c9deb60931a7f9f75bb4ee130291b.zip |
Added local highscore list
You can now view and add to a local highscore list. A change to State was necessary due to how the user's name would be entered into the highscore list and thus all states have been modified. Refs #104
Diffstat (limited to 'titlestate.cpp')
-rw-r--r-- | titlestate.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/titlestate.cpp b/titlestate.cpp index 980e3b6..ae18c48 100644 --- a/titlestate.cpp +++ b/titlestate.cpp | |||
@@ -10,15 +10,15 @@ TitleState::TitleState() | |||
10 | SDL_WM_SetCaption("Maze Of Life", NULL); | 10 | SDL_WM_SetCaption("Maze Of Life", NULL); |
11 | } | 11 | } |
12 | 12 | ||
13 | void TitleState::input(SDLKey key) | 13 | void TitleState::input(SDL_keysym key) |
14 | { | 14 | { |
15 | if ((key == SDLK_UP) && (selection != 0)) | 15 | if ((key.sym == SDLK_UP) && (selection != 0)) |
16 | { | 16 | { |
17 | selection--; | 17 | selection--; |
18 | } else if ((key == SDLK_DOWN) && (selection != 3)) | 18 | } else if ((key.sym == SDLK_DOWN) && (selection != 3)) |
19 | { | 19 | { |
20 | selection++; | 20 | selection++; |
21 | } else if (key == SDLK_RETURN) | 21 | } else if (key.sym == SDLK_RETURN) |
22 | { | 22 | { |
23 | switch (selection) | 23 | switch (selection) |
24 | { | 24 | { |