Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,11 @@ class JetAwaitingRunwayState : public State

ParkingPlaceBehaviorInterface* pp = getPP(jet->getProducerID());
if (pp == nullptr)
{
// no producer? just skip this step.
#if RETAIL_COMPATIBLE_CRC
return STATE_SUCCESS;
}
#else
return STATE_FAILURE;
#endif

// gotta reserve a space in order to reserve a runway
if (!pp->reserveSpace(jet->getID(), jetAI->friend_getParkingOffset(), nullptr))
Expand Down Expand Up @@ -446,10 +447,13 @@ class JetOrHeliTaxiState : public AIMoveOutOfTheWayState
jetAI->chooseLocomotorSet(LOCOMOTORSET_TAXIING);
DEBUG_ASSERTCRASH(jetAI->getCurLocomotor(), ("no loco"));

Object* airfield;
ParkingPlaceBehaviorInterface* pp = getPP(jet->getProducerID(), &airfield);
ParkingPlaceBehaviorInterface* pp = getPP(jet->getProducerID());
if (pp == nullptr)
return STATE_SUCCESS; // no airfield? just skip this step.
#if RETAIL_COMPATIBLE_CRC
return STATE_SUCCESS;
#else
return STATE_FAILURE;
#endif

ParkingPlaceBehaviorInterface::PPInfo ppinfo;
if (!pp->reserveSpace(jet->getID(), jetAI->friend_getParkingOffset(), &ppinfo))
Expand Down Expand Up @@ -585,7 +589,11 @@ class JetTakeoffOrLandingState : public AIFollowPathState

ParkingPlaceBehaviorInterface* pp = getPP(jet->getProducerID());
if (pp == nullptr)
return STATE_SUCCESS; // no airfield? just skip this step
#if RETAIL_COMPATIBLE_CRC
return STATE_SUCCESS;
#else
return STATE_FAILURE;
#endif

ParkingPlaceBehaviorInterface::PPInfo ppinfo;
if (!pp->reserveSpace(jet->getID(), jetAI->friend_getParkingOffset(), &ppinfo))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,11 @@ class JetAwaitingRunwayState : public State

ParkingPlaceBehaviorInterface* pp = getPP(jet->getProducerID());
if (pp == nullptr)
{
// no producer? just skip this step.
#if RETAIL_COMPATIBLE_CRC
return STATE_SUCCESS;
}
#else
return STATE_FAILURE;
#endif

// gotta reserve a space in order to reserve a runway
if (!pp->reserveSpace(jet->getID(), jetAI->friend_getParkingOffset(), nullptr))
Expand Down Expand Up @@ -505,10 +506,13 @@ class JetOrHeliTaxiState : public AIMoveOutOfTheWayState
jetAI->chooseLocomotorSet(LOCOMOTORSET_TAXIING);
DEBUG_ASSERTCRASH(jetAI->getCurLocomotor(), ("no loco"));

Object* airfield;
ParkingPlaceBehaviorInterface* pp = getPP(jet->getProducerID(), &airfield);
ParkingPlaceBehaviorInterface* pp = getPP(jet->getProducerID());
if (pp == nullptr)
return STATE_SUCCESS; // no airfield? just skip this step.
#if RETAIL_COMPATIBLE_CRC
return STATE_SUCCESS;
#else
return STATE_FAILURE;
#endif

ParkingPlaceBehaviorInterface::PPInfo ppinfo;
if (!pp->reserveSpace(jet->getID(), jetAI->friend_getParkingOffset(), &ppinfo))
Expand Down Expand Up @@ -747,7 +751,11 @@ class JetTakeoffOrLandingState : public AIFollowPathState

ParkingPlaceBehaviorInterface* pp = getPP(jet->getProducerID());
if (pp == nullptr)
return STATE_SUCCESS; // no airfield? just skip this step
#if RETAIL_COMPATIBLE_CRC
return STATE_SUCCESS;
#else
return STATE_FAILURE;
#endif

ParkingPlaceBehaviorInterface::PPInfo ppinfo;
if (!pp->reserveSpace(jet->getID(), jetAI->friend_getParkingOffset(), &ppinfo))
Expand Down
Loading