diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-12-28 02:43:54 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-12-28 02:43:54 +0100 |
commit | 7b3785d07791141787a0eac6137cb5c98e1d210c (patch) | |
tree | eee9a6aa9715f1569fddc102a15f578df2138902 /crawl-ref/source/maps.cc | |
parent | 2cf8a18928f1c553efb5dffb1ab5b76b50731370 (diff) | |
parent | efb6b1fd7b0c5027acd6d6ecede9bb34dfbea356 (diff) | |
download | crawl-ref-7b3785d07791141787a0eac6137cb5c98e1d210c.tar.gz crawl-ref-7b3785d07791141787a0eac6137cb5c98e1d210c.zip |
Merge branch 'master' into portal_branches
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r-- | crawl-ref/source/maps.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc index 7d1aa3568c..7b657c5dd0 100644 --- a/crawl-ref/source/maps.cc +++ b/crawl-ref/source/maps.cc @@ -21,9 +21,7 @@ #include "env.h" #include "enum.h" #include "files.h" -#ifdef USE_TILE #include "initfile.h" -#endif #include "libutil.h" #include "message.h" #include "mapdef.h" @@ -1193,17 +1191,17 @@ static bool load_map_cache(const std::string &filename, const std::string &cache if (is_newer(filename, file_idx) || is_newer(filename, file_dsc)) return (false); -#ifdef USE_TILE // When the executable is rebuilt for tiles, it's possible that // the tile enums have changed, breaking old cache files. // So, conservatively regenerate cache files after rebuilding. + + // Is this still the case? Don't we use names as strings now? --1KB { std::string exe_path = SysEnv.crawl_base + FILE_SEPARATOR + SysEnv.crawl_exe; if (is_newer(exe_path, file_idx) || is_newer(exe_path, file_dsc)) return (false); } -#endif if (!verify_map_index(descache_base) || !verify_map_full(descache_base)) return (false); |