1
0
Fork 0

Maintenance: AIBase

explicit ctor.
spelling.
This commit is contained in:
scttgs0 2023-05-21 17:00:58 -05:00
parent 0f108f80cb
commit 7adb9a3b44

View file

@ -46,7 +46,7 @@ using namespace simgear;
class FGAIModelData : public simgear::SGModelData { class FGAIModelData : public simgear::SGModelData {
public: public:
FGAIModelData(SGPropertyNode *root = nullptr) explicit FGAIModelData(SGPropertyNode *root = nullptr)
: _root (root) : _root (root)
{ {
} }
@ -105,7 +105,7 @@ public:
* Not thread-safe. Call from main thread only. */ * Not thread-safe. Call from main thread only. */
void init(void) { _initialized = true; } void init(void) { _initialized = true; }
bool needInitilization(void) { return _ready && !_initialized;} bool needInitialization(void) { return _ready && !_initialized;}
bool isInitialized(void) { return _initialized;} bool isInitialized(void) { return _initialized;}
inline std::string& get_sound_path() { return _fxpath;} inline std::string& get_sound_path() { return _fxpath;}
@ -292,7 +292,7 @@ void FGAIBase::update(double dt) {
ft_per_deg_lat = 366468.96 - 3717.12 * cos(pos.getLatitudeRad()); ft_per_deg_lat = 366468.96 - 3717.12 * cos(pos.getLatitudeRad());
ft_per_deg_lon = 365228.16 * cos(pos.getLatitudeRad()); ft_per_deg_lon = 365228.16 * cos(pos.getLatitudeRad());
if ((_modeldata)&&(_modeldata->needInitilization())) if ((_modeldata)&&(_modeldata->needInitialization()))
{ {
// process deferred nasal initialization, // process deferred nasal initialization,
// which must be done in main thread // which must be done in main thread