1
0
Fork 0

Reserve a special FGPositionned type for pavements

This commit is contained in:
fredb 2009-06-14 17:43:29 +00:00 committed by Tim Moore
parent 522787c173
commit 862f59aded
3 changed files with 4 additions and 2 deletions

View file

@ -25,7 +25,7 @@
#include "pavement.hxx"
FGPavement::FGPavement(const std::string& aIdent, const SGGeod& aPos) :
FGPositioned(TAXIWAY, aIdent, aPos, false)
FGPositioned(PAVEMENT, aIdent, aPos, false)
{
}

View file

@ -447,7 +447,7 @@ FGPositioned::FGPositioned(Type ty, const std::string& aIdent, const SGGeod& aPo
SGReferenced::get(this); // hold an owning ref, for the moment
if (aIndexed) {
assert(ty != TAXIWAY);
assert(ty != TAXIWAY && ty != PAVEMENT);
addToIndices(this);
}
}
@ -475,6 +475,7 @@ const char* FGPositioned::nameForType(Type aTy)
switch (aTy) {
case RUNWAY: return "runway";
case TAXIWAY: return "taxiway";
case PAVEMENT: return "pavement";
case PARK_STAND: return "parking stand";
case FIX: return "fix";
case VOR: return "VOR";

View file

@ -41,6 +41,7 @@ public:
SEAPORT,
RUNWAY,
TAXIWAY,
PAVEMENT,
PARK_STAND,
FIX,
VOR,