diff options
| author | Ray Hogenson <rayhogenson@gmail.com> | 2012-03-26 15:38:02 -0800 |
|---|---|---|
| committer | Ray Hogenson <rayhogenson@gmail.com> | 2012-03-26 15:38:02 -0800 |
| commit | f18c42e8a3591699778cdc70367a1b3f5417c22a (patch) | |
| tree | b567b9bcd218da40f251bf940f13942a9071f16c | |
| parent | d14fe2cacf42657ed2ddbe80fa0c372e1adfd201 (diff) | |
| download | yetihack-f18c42e8a3591699778cdc70367a1b3f5417c22a.tar.zst | |
added an exit option
| -rw-r--r-- | src/YetiHack.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/YetiHack.cpp b/src/YetiHack.cpp index 41a4d63..17d6371 100644 --- a/src/YetiHack.cpp +++ b/src/YetiHack.cpp @@ -333,6 +333,7 @@ void menu(bool immortal) addstr("\t1. Arcade mode (classic)\n"); addstr("\t2. Story mode\n"); addstr("\t3. Help\n"); + addstr("\t4. Exit\n"); addstr("Select an option to proceed: "); refresh(); echo(); @@ -384,6 +385,10 @@ void menu(bool immortal) erase(); help(); break; + case '4': + endCurses(); + exit(0); + break; } addstr(convert(a)); } @@ -429,7 +434,6 @@ int main(int argc, char* argv[]) { menu(immortal); } - endCurses(); return 0; } |
