diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-20 12:19:31 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-20 12:19:31 +0000 |
commit | 9ff31d52f2dad36c684c3458c35f0666a0fb28e4 (patch) | |
tree | d74cb4ba9591eb4e904d7940c6405d6cc8321fd9 /crawl-ref/source/newgame.cc | |
parent | 1c9f524503622db5774b18a6fca37b71739a5946 (diff) | |
download | crawl-ref-9ff31d52f2dad36c684c3458c35f0666a0fb28e4.tar.gz crawl-ref-9ff31d52f2dad36c684c3458c35f0666a0fb28e4.zip |
Fall back to ASCII if Unicode locale is unavailable (Guus). Also queue up startup error messages and display them before the newgame screen instead of emitting them to stderr.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2882 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r-- | crawl-ref/source/newgame.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index bb95262009..2dfcd5c528 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -93,6 +93,7 @@ #include "skills2.h" #include "spl-book.h" #include "spl-util.h" +#include "state.h" #include "stuff.h" #include "tutorial.h" #include "version.h" @@ -725,6 +726,13 @@ bool new_game(void) init_player(); + if (!crawl_state.startup_errors.empty() + && !Options.suppress_startup_errors) + { + crawl_state.show_startup_errors(); + clrscr(); + } + if (!Options.player_name.empty()) { strncpy(you.your_name, Options.player_name.c_str(), kNameLen); |