Skip to content

Commit

Permalink
Merge pull request #5173 from SJuliez/troopspace-rename
Browse files Browse the repository at this point in the history
Rename TroopSpace to InfantryCompartment
  • Loading branch information
HammerGS authored Nov 24, 2024
2 parents 1c2cbae + 387b0b7 commit 32c3a89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ private static List<Entity> fillTransport(AtBScenario scenario,

for (Transporter bay : transport.getTransports()) {
// If unit has an infantry bay
if (bay instanceof TroopSpace) {
if (bay instanceof InfantryCompartment) {

double bayCapacity = bay.getUnused();
int remainingCount = (int) Math.max(1, Math.floor(bayCapacity / IUnitGenerator.FOOT_PLATOON_INFANTRY_WEIGHT));
Expand Down

0 comments on commit 32c3a89

Please sign in to comment.