diff options
author | Neil Moore <neil@s-z.org> | 2014-07-18 22:38:46 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-18 22:39:49 -0400 |
commit | f27e6ab4a14487cedb8c3d1b6bd1dd87b5744187 (patch) | |
tree | 8c05ba71cbe8f02d94daea8c06db733d63d98e96 /crawl-ref/source/files.cc | |
parent | 047404efb3ec3d1e26f269560073b168f500f279 (diff) | |
download | crawl-ref-f27e6ab4a14487cedb8c3d1b6bd1dd87b5744187.tar.gz crawl-ref-f27e6ab4a14487cedb8c3d1b6bd1dd87b5744187.zip |
Avoid another dead assignment (#8419)
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 4cbc070c39..30f99e0a8b 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -2288,15 +2288,15 @@ static FILE* _make_bones_file(string * return_gfilename) void save_ghost(bool force) { #ifdef BONES_DIAGNOSTICS - - bool do_diagnostics = false; -#ifdef WIZARD - do_diagnostics = you.wizard; -#endif -#if defined(DEBUG_BONES) || defined(DEBUG_DIAGNOSTICS) - do_diagnostics = true; -#endif - + const bool do_diagnostics = +# if defined(DEBUG_BONES) || defined(DEBUG_DIAGNOSTICS) + true +# elif defined(WIZARD) + you.wizard +# else // Can't happen currently + false +# endif + ; #endif // BONES_DIAGNOSTICS ghosts = ghost_demon::find_ghosts(); |