Skip to content

Commit

Permalink
Fix spawnee facing to match owner facing when returning
Browse files Browse the repository at this point in the history
Co-authored-by: Trsdy <lty960520@icloud.com>
  • Loading branch information
Starkku and Trsdy authored Mar 2, 2024
1 parent 43f97fc commit a4139d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Ext/Aircraft/Body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ DirType AircraftExt::GetLandingDir(AircraftClass* pThis, BuildingClass* pDock)
if (!pThis)
return poseDir;

if (auto pOwner = pThis->SpawnOwner)
return pOwner->PrimaryFacing.Current().GetDir();

bool isAirportBound = true;

if (pDock || pThis->HasAnyLink())
Expand Down

0 comments on commit a4139d5

Please sign in to comment.