|
|
|
@ -34,7 +34,7 @@ namespace MWMechanics
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AiTravel::AiTravel(const ESM::AiSequence::AiTravel *travel)
|
|
|
|
|
: mX(travel->mData.mX), mY(travel->mData.mY), mZ(travel->mData.mZ)
|
|
|
|
|
: mX(travel->mData.mX), mY(travel->mData.mY), mZ(travel->mData.mZ), mHidden(travel->mHidden)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -63,7 +63,6 @@ namespace MWMechanics
|
|
|
|
|
|
|
|
|
|
int AiTravel::getTypeId() const
|
|
|
|
|
{
|
|
|
|
|
// TODO: store mHidden in the savegame?
|
|
|
|
|
return mHidden ? TypeIdInternalTravel : TypeIdTravel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -83,6 +82,7 @@ namespace MWMechanics
|
|
|
|
|
travel->mData.mX = mX;
|
|
|
|
|
travel->mData.mY = mY;
|
|
|
|
|
travel->mData.mZ = mZ;
|
|
|
|
|
travel->mHidden = mHidden;
|
|
|
|
|
|
|
|
|
|
ESM::AiSequence::AiPackageContainer package;
|
|
|
|
|
package.mType = ESM::AiSequence::Ai_Travel;
|
|
|
|
|