Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
mission.apsDroidLists transporter count check #277
In the scenario a player's first transport load does not contain any trucks in Gamma-1, and said player tries to bring in all their trucks from the transporter menu, the mission will instantly fail.
Compound this with the transporter loads getting mixed up if loading saves from Beta-end and we essentially come across a potential soft-lock.
Campaign library function __camPlayerDead() checks if a player is dead by seeing if there are no factories or trucks. Specifically, countDroid(DROID_CONSTRUCT) is returning zero. Thus the player is not considered alive.
So, this PR updates the counts for trucks and commanders that are inside a transporter inside the mission list. Below is a savegame to reproduce this issue.