diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-07 12:24:40 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-07 12:24:40 +0000 |
commit | 80efbb31cad981ef99a5526b895a040fb930d46a (patch) | |
tree | fa3b5327e7760c45c71fdaaa85ceba5dc34e8785 /crawl-ref/source/acr.cc | |
parent | 05982cef94ba574904072aada7d1cfadca06f5e0 (diff) | |
download | crawl-ref-80efbb31cad981ef99a5526b895a040fb930d46a.tar.gz crawl-ref-80efbb31cad981ef99a5526b895a040fb930d46a.zip |
Messaging improvements.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1411 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index b37ec439eb..909e33c039 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -234,10 +234,10 @@ int main( int argc, char *argv[] ) init_tutorial_options(); if (game_start || Options.always_greet) { - mpr_stream << "Welcome, " << you.your_name << " the " - << species_name( you.species,you.experience_level ) - << " " << you.class_name << "." - << std::endl; + msg::stream << "Welcome, " << you.your_name << " the " + << species_name( you.species,you.experience_level ) + << " " << you.class_name << "." + << std::endl; // Starting messages can go here as this should only happen // at the start of a new game -- bwr @@ -312,12 +312,11 @@ int main( int argc, char *argv[] ) Options.tut_just_triggered = true; // print stats and everything prep_input(); - int ch = 'x'; - mpr_stream << setchan(MSGCH_TUTORIAL) - << "Press any key to start the tutorial intro, " - << "or Escape to skip it." - << std::endl; - ch = c_getch(); + msg::streams(MSGCH_TUTORIAL) + << "Press any key to start the tutorial intro, " + "or Escape to skip it." + << std::endl; + const int ch = c_getch(); if (ch != ESCAPE) tut_starting_screen(); @@ -2834,15 +2833,14 @@ static bool initialise(void) init_monsters(mcolour); // this needs to be way up top {dlb} init_spell_descs(); // this needs to be way up top {dlb} - // Ensure no buffering on the mpr() stream. - mpr_stream << std::nounitbuf; + msg::initialise_mpr_streams(); // init item array: for (int i = 0; i < MAX_ITEMS; i++) - init_item( i ); + init_item(i); // empty messaging string - strcpy(info, ""); + info[0] = 0; for (int i = 0; i < MAX_MONSTERS; i++) menv[i].reset(); |