]> git.mxchange.org Git - flightgear.git/commit
#510: Fix disappearing AIShips.
authorThorstenB <brehmt@gmail.com>
Fri, 9 Dec 2011 16:06:19 +0000 (17:06 +0100)
committerThorstenB <brehmt@gmail.com>
Fri, 9 Dec 2011 16:06:19 +0000 (17:06 +0100)
commit826107f132da375d18f13bc11e69233ad633ae20
treed1581088b86587aa764777d0ae176b41b1e7e6e9
parentbfb0619f76e68880a167c986d993db182368e45b
#510: Fix disappearing AIShips.
Untangle AI reinit and init methods. Some code in init hooks expects to be
called once only. Derived classes should not redirect their reinit to init,
even if this seems fine for the methods of the derived class itself. This
also triggers the init methods of all base classes, which may not expect
multiple calls to their init methods (or to "init" on "reinit").
src/AIModel/AIBallistic.cxx
src/AIModel/AIBallistic.hxx
src/AIModel/AIBase.cxx
src/AIModel/AIEscort.cxx
src/AIModel/AIEscort.hxx
src/AIModel/AIGroundVehicle.cxx
src/AIModel/AIGroundVehicle.hxx
src/AIModel/AIShip.cxx
src/AIModel/AIShip.hxx
src/AIModel/AIWingman.cxx
src/AIModel/AIWingman.hxx