diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-10-20 20:01:19 -0500 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-10-20 20:01:58 -0500 |
commit | e3a04ec3a1b79e8f8ae8937e3fe16552384e557b (patch) | |
tree | 899b4426d9cc3deef16e1ed1031c88df0f0c5054 /crawl-ref/source/initfile.cc | |
parent | 00e0df0c6cfcd47a9f71bf1bbd211db340baaf06 (diff) | |
download | crawl-ref-e3a04ec3a1b79e8f8ae8937e3fe16552384e557b.tar.gz crawl-ref-e3a04ec3a1b79e8f8ae8937e3fe16552384e557b.zip |
Remove tabs, and add minor cosmetic fixes.
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index d91ecdd1c9..c54713e80a 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -968,22 +968,24 @@ void game_options::reset_options() // If USE_8_COLOUR_TERM_MAP is defined, then we force 8 colors. // Otherwise, do a check to see if we're using Apple_Terminal. #ifndef USE_8_COLOUR_TERM_MAP - const char *term_program = getenv("TERM_PROGRAM"); + const char *term_program = getenv("TERM_PROGRAM"); if (term_program && strcmp(term_program, "Apple_Terminal") == 0) { #endif - for (int i = 0; i < 16; i++) + for (int i = 0; i < 16; ++i) colour[i] = i % 8; colour[ DARKGREY ] = COL_TO_REPLACE_DARKGREY; #ifndef USE_8_COLOUR_TERM_MAP - } else { - for (int i = 0; i < 16; i++) + } + else + { + for (int i = 0; i < 16; ++i) colour[i] = i; - } + } #endif // map each channel to plain (well, default for now since I'm testing) - for (int i = 0; i < NUM_MESSAGE_CHANNELS; i++) + for (int i = 0; i < NUM_MESSAGE_CHANNELS; ++i) channels[i] = MSGCOL_DEFAULT; // Clear vector options. |