summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-03 12:54:05 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-03 12:54:05 +0000
commit5894f27848d3bf7ca770c06c207ee1fc627dc983 (patch)
treeabaa3faf4a4f99d23a15cc155ed1540c8f725f27 /crawl-ref/source/stuff.cc
parent5ac1e751c170bbe8e7537959bfc6fe0b3ff6b876 (diff)
downloadcrawl-ref-5894f27848d3bf7ca770c06c207ee1fc627dc983.tar.gz
crawl-ref-5894f27848d3bf7ca770c06c207ee1fc627dc983.zip
Jellies now resist acid spit (adapted jlewis' patch).
On Windows and DOS, prompt for a newline after printing an error message and exiting, since users on those systems seem to run executables by double-clicking on them, and cannot see error messages because the console disappears when the game exits. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1198 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r--crawl-ref/source/stuff.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc
index 31aa0de613..74c9250bdd 100644
--- a/crawl-ref/source/stuff.cc
+++ b/crawl-ref/source/stuff.cc
@@ -376,6 +376,14 @@ void end(int exit_code, bool print_error, const char *format, ...)
error += "\n";
fprintf(stderr, "%s", error.c_str());
}
+
+#if defined(WIN32CONSOLE) || defined(DOS)
+ if (exit_code)
+ {
+ fprintf(stderr, "Hit Enter to continue...\n");
+ getchar();
+ }
+#endif
exit(exit_code);
}