Skip to content

Commit

Permalink
Fix forged group not actually spawning (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
rftrdev authored Jul 5, 2023
1 parent fb03cba commit 66ba2c8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Strategic/Strategic Transport Groups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,22 @@ BOOLEAN ForceDeployTransportGroup(UINT8 sectorId)
const UINT8 progress = min(125, HighestPlayerProgressPercentage() + recentLossCount * 5);
const UINT8 difficulty = gGameOptions.ubDifficultyLevel;
PopulateTransportGroup(admins, troops, elites, jeeps, tanks, robots, progress, difficulty, FALSE);

// varying transport group quality/compositions
GROUP* pGroup = CreateNewEnemyGroupDepartingFromSector( SECTOR( gModSettings.ubSAISpawnSectorX, gModSettings.ubSAISpawnSectorY ), admins, troops, elites, robots, tanks, jeeps );

//Madd: unlimited reinforcements?
if ( !gfUnlimitedTroops )
{
giReinforcementPool -= (admins + troops + elites + robots + jeeps + tanks);

giReinforcementPool = max( giReinforcementPool, 0 );
}

MoveSAIGroupToSector( &pGroup, sectorId, EVASIVE, TRANSPORT );

pGroup->uiFlags |= GROUPFLAG_TRANSPORT_ENROUTE;

return TRUE;
}

Expand Down

0 comments on commit 66ba2c8

Please sign in to comment.