Skip to content

Commit

Permalink
Make militia face the direction opposite the sector they entered from
Browse files Browse the repository at this point in the history
  • Loading branch information
majcosta committed Dec 16, 2024
1 parent d59d774 commit 7f23536
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tactical/Soldier Init List.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3174,7 +3174,10 @@ void AddSoldierInitListMilitiaOnEdge( UINT8 ubStrategicInsertionCode, UINT8 ubNu
}
UpdateMercInSector( pSoldier, gWorldSectorX, gWorldSectorY, 0 );
}


// Soldiers face direction opposite they entered from
pSoldier->ubDirection = BackTowardsStrategicInsertionCode(ubStrategicInsertionCode);

// HEADROCK HAM 3.2: Experimental, militia reinforcements arrive with 0 APs.
if (gGameExternalOptions.ubReinforcementsFirstTurnFreeze == 1 || gGameExternalOptions.ubReinforcementsFirstTurnFreeze == 3)
{
Expand Down Expand Up @@ -3344,4 +3347,4 @@ void SectorAddDownedPilot( INT16 sMapX, INT16 sMapY, INT16 sMapZ )
// remove the flag. We can only find the pilot the first time we visit this sector after the heli was shut down
pSector->usSectorInfoFlag &= ~SECTORINFO_ENEMYHELI_SHOTDOWN;
}
}
}

0 comments on commit 7f23536

Please sign in to comment.