- remove trailing spaces
- fix many cases of broken indentation (but not all) - unify indendation - ...
This commit is contained in:
parent
4db6e924fe
commit
942561d64c
5 changed files with 258 additions and 253 deletions
|
@ -99,8 +99,10 @@ void FGAIBase::readFromScenario(SGPropertyNode* scFileNode)
|
|||
}
|
||||
|
||||
void FGAIBase::update(double dt) {
|
||||
if (_otype == otStatic) return;
|
||||
if (_otype == otBallistic) CalculateMach();
|
||||
if (_otype == otStatic)
|
||||
return;
|
||||
if (_otype == otBallistic)
|
||||
CalculateMach();
|
||||
|
||||
ft_per_deg_lat = 366468.96 - 3717.12 * cos(pos.lat()*SGD_DEGREES_TO_RADIANS);
|
||||
ft_per_deg_lon = 365228.16 * cos(pos.lat()*SGD_DEGREES_TO_RADIANS);
|
||||
|
@ -157,8 +159,7 @@ ssgBranch * FGAIBase::load3DModel(const string& fg_root,
|
|||
// if not load it, otherwise, get the memory pointer and do something like
|
||||
// SetModel as in ATC/AIEntity.cxx
|
||||
model = manager->getModel(path);
|
||||
if (!(model))
|
||||
{
|
||||
if (!(model)) {
|
||||
model = sgLoad3DModel(fg_root,
|
||||
path,
|
||||
prop_root,
|
||||
|
@ -170,8 +171,10 @@ ssgBranch * FGAIBase::load3DModel(const string& fg_root,
|
|||
}
|
||||
|
||||
bool FGAIBase::isa( object_type otype ) {
|
||||
if ( otype == _otype ) { return true; }
|
||||
else { return false; }
|
||||
if ( otype == _otype )
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -428,7 +431,8 @@ void FGAIBase::CalculateMach() {
|
|||
|
||||
int FGAIBase::_newAIModelID() {
|
||||
static int id = 0;
|
||||
if (!++id) id++; // id = 0 is not allowed.
|
||||
if (!++id)
|
||||
id++; // id = 0 is not allowed.
|
||||
return id;
|
||||
}
|
||||
|
||||
|
|
|
@ -150,6 +150,7 @@ wxRadarBg::update (double delta_time_sec)
|
|||
glPushMatrix();
|
||||
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
|
||||
if ( switchKnob == "off" ) {
|
||||
_Instrument->setStringValue("status","");
|
||||
} else if ( switchKnob == "stby" ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue