1
0
Fork 0

David Culp:

Here's a fix for a bug I introduced when I updated the AIStorm with
turbulence.  The change I made to the FGAIEntity struct was overriding the
thermal <strength-fps> data.
This commit is contained in:
ehofman 2005-11-16 15:23:18 +00:00
parent 2c0e18bdd0
commit 9df7af3924
3 changed files with 4 additions and 3 deletions

View file

@ -70,7 +70,8 @@ typedef struct {
double azimuth; // used by ballistic objects
double elevation; // used by ballistic objects
double rudder; // used by ship objects
double strength; // used by thermal and storm objects
double strength; // used by thermal
double turb_strength; // used by storm objects
double diameter; // used by thermal and storm objects
double height_msl; // used by thermal and storm objects
double eda; // used by ballistic objects

View file

@ -307,7 +307,7 @@ FGAIManager::createStorm( FGAIModelEntity *entity ) {
ai_storm->setAltitude(entity->altitude);
ai_storm->setDiameter(entity->diameter / 6076.11549);
ai_storm->setHeight(entity->height_msl);
ai_storm->setStrengthNorm(entity->strength);
ai_storm->setStrengthNorm(entity->turb_strength);
ai_storm->setLongitude(entity->longitude);
ai_storm->setLatitude(entity->latitude);
ai_storm->init();

View file

@ -87,7 +87,7 @@ FGAIScenario::FGAIScenario(const string &filename)
en->elevation = entry_node->getDoubleValue("elevation", 0.0);
en->rudder = entry_node->getFloatValue("rudder", 0.0);
en->strength = entry_node->getDoubleValue("strength-fps", 8.0);
en->strength = entry_node->getDoubleValue("strength-norm", 1.0);
en->turb_strength = entry_node->getDoubleValue("strength-norm", 1.0);
en->diameter = entry_node->getDoubleValue("diameter-ft", 0.0);
en->height_msl = entry_node->getDoubleValue("height-msl", 5000.0);
en->eda = entry_node->getDoubleValue("eda", 0.007);