]> git.mxchange.org Git - flightgear.git/commit
Bugfix: Non-existent AIModels could trigger a request to load scenery tiles
authordurk <durk>
Sat, 11 Mar 2006 18:14:48 +0000 (18:14 +0000)
committerdurk <durk>
Sat, 11 Mar 2006 18:14:48 +0000 (18:14 +0000)
commitf8eb3d430972884181e11c886ffe86b598e1ef1e
treeccb623606fed613f876dad90f42a4f64d38f6256
parent9aaac1e35286c95b680a6db7cffac5a15e4e5904
Bugfix: Non-existent AIModels could trigger a request to load scenery tiles
at (lon, lat) coordinates -1000,0. This patch fixes the AIModels/Traffic
Manager side of things. The AIModels subsystems allowed the creation of
AIAircraft with non-existent 3D models. If such a model didn't exist, the
aip class didn't get initialized, resulting in the above-mentioned bogus
position information. Here I circumvent this problem by a) only interacting
with the tile loader if the model is visible (and hence has succesfully been
initialized) and b) by disallowing the traffic manager to create AIAircraft
objects if the path to the 3D model doesn't exist.
src/AIModel/AIAircraft.cxx
src/Traffic/Schedule.cxx