]> git.mxchange.org Git - flightgear.git/commitdiff
Fix bug 1227, cache thrash on Win.
authorJames Turner <zakalawe@mac.com>
Mon, 21 Oct 2013 12:26:08 +0000 (13:26 +0100)
committerJames Turner <zakalawe@mac.com>
Mon, 21 Oct 2013 12:26:08 +0000 (13:26 +0100)
Since we skip POI load on Windows, we also need to
omit the stat check. Apologies for the dumb mistake.

(Will back port to 2.12 branch)

src/Navaids/NavDataCache.cxx

index da943aa28a0cf6652492b232c14365e96ad06821..a17c8c6eaa67c4e83e31496804c8e8e618e88ad0 100644 (file)
@@ -1100,7 +1100,11 @@ bool NavDataCache::isRebuildRequired()
       isCachedFileModified(d->metarDatPath) ||
       isCachedFileModified(d->navDatPath) ||
       isCachedFileModified(d->fixDatPath) ||
+// since POI loading is disabled on Windows, don't check for it
+// this caused: https://code.google.com/p/flightgear-bugs/issues/detail?id=1227
+#ifndef SG_WINDOWS
       isCachedFileModified(d->poiDatPath) ||
+#endif
       isCachedFileModified(d->airwayDatPath))
   {
     SG_LOG(SG_NAVCACHE, SG_INFO, "NavCache: main cache rebuild required");