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"
|
#include "pavement.hxx"
|
||||||
|
|
||||||
FGPavement::FGPavement(const std::string& aIdent, const SGGeod& aPos) :
|
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
|
SGReferenced::get(this); // hold an owning ref, for the moment
|
||||||
|
|
||||||
if (aIndexed) {
|
if (aIndexed) {
|
||||||
assert(ty != TAXIWAY);
|
assert(ty != TAXIWAY && ty != PAVEMENT);
|
||||||
addToIndices(this);
|
addToIndices(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -475,6 +475,7 @@ const char* FGPositioned::nameForType(Type aTy)
|
||||||
switch (aTy) {
|
switch (aTy) {
|
||||||
case RUNWAY: return "runway";
|
case RUNWAY: return "runway";
|
||||||
case TAXIWAY: return "taxiway";
|
case TAXIWAY: return "taxiway";
|
||||||
|
case PAVEMENT: return "pavement";
|
||||||
case PARK_STAND: return "parking stand";
|
case PARK_STAND: return "parking stand";
|
||||||
case FIX: return "fix";
|
case FIX: return "fix";
|
||||||
case VOR: return "VOR";
|
case VOR: return "VOR";
|
||||||
|
|
|
@ -41,6 +41,7 @@ public:
|
||||||
SEAPORT,
|
SEAPORT,
|
||||||
RUNWAY,
|
RUNWAY,
|
||||||
TAXIWAY,
|
TAXIWAY,
|
||||||
|
PAVEMENT,
|
||||||
PARK_STAND,
|
PARK_STAND,
|
||||||
FIX,
|
FIX,
|
||||||
VOR,
|
VOR,
|
||||||
|
|
Loading…
Add table
Reference in a new issue