diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-20 19:38:09 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-20 19:38:09 +0000 |
commit | f494038250893bc8db8794809a2157e97c824cf9 (patch) | |
tree | bceec5927950cba04205ea2a157bc6f532d39ed3 /crawl-ref/source/initfile.cc | |
parent | e12f29053e4e870a20f0f86dfbad3994526097dd (diff) | |
download | crawl-ref-f494038250893bc8db8794809a2157e97c824cf9.tar.gz crawl-ref-f494038250893bc8db8794809a2157e97c824cf9.zip |
Add more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8629 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 70730c3e08..ee3c194956 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -238,14 +238,14 @@ std::string channel_to_str( int channel ) static int _str_to_book( const std::string& str ) { - if (str == "fire" || str == "flame") - return SBT_FIRE; + if (str == "flame" || str == "fire") + return (SBT_FIRE); if (str == "cold" || str == "ice") - return SBT_COLD; + return (SBT_COLD); if (str == "summ" || str == "summoning") - return SBT_SUMM; + return (SBT_SUMM); if (str == "random") - return SBT_RANDOM; + return (SBT_RANDOM); return (SBT_NO_SELECTION); } @@ -1286,7 +1286,7 @@ static void write_newgame_options(FILE *f) lowercase_string(god_name(Options.prev_pr)).c_str()); } - if (Options.prev_book != SBT_NO_SELECTION ) + if (Options.prev_book != SBT_NO_SELECTION) { fprintf(f, "book = %s\n", Options.prev_book == SBT_FIRE ? "fire" : |