Reserve a special FGPositionned type for pavements
This commit is contained in:
parent
522787c173
commit
862f59aded
3 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -41,6 +41,7 @@ public:
|
|||
SEAPORT,
|
||||
RUNWAY,
|
||||
TAXIWAY,
|
||||
PAVEMENT,
|
||||
PARK_STAND,
|
||||
FIX,
|
||||
VOR,
|
||||
|
|
Loading…
Reference in a new issue