]> git.mxchange.org Git - flightgear.git/commit
Check if scenery is available before blowing away existing values in ground cache
authortimoore <timoore>
Tue, 11 Dec 2007 11:10:35 +0000 (11:10 +0000)
committertimoore <timoore>
Tue, 11 Dec 2007 11:10:35 +0000 (11:10 +0000)
commit579b60b8e45363bc1ae011f67196d73ef392620a
tree6c979afe4f6a9a322901511641676d475fcaf9df
parentaed97e0dd4ed7b3f3275df7f4f9256a4fda7c0d7
Check if scenery is available before blowing away existing values in ground cache

This fixes a race condition when teleporting somewhere outside of the
currently loaded scenery. Before, if there was no valid scenery, an
aircraft might end up at the center of the earth...
src/FDM/groundcache.cxx