mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Fix: Make sure MILITIA_VOLUNTEER_POOL_MULTIPLIER_FARM is not applied to farms inside towns
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8563 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2112,13 +2112,7 @@ FLOAT CalcHourlyVolunteerGain()
|
||||
// not if the enemy controls this sector
|
||||
if ( StrategicMap[CALCULATE_STRATEGIC_INDEX( sX, sY )].fEnemyControlled )
|
||||
continue;
|
||||
|
||||
UINT8 sector = SECTOR( sX, sY );
|
||||
|
||||
// modifier increase for every farm we control
|
||||
if ( IsSectorFarm( sX, sY ) )
|
||||
populationmodifier += gGameExternalOptions.dMilitiaVolunteerMultiplierFarm;
|
||||
|
||||
|
||||
UINT8 ubTownID = StrategicMap[CALCULATE_STRATEGIC_INDEX( sX, sY )].bNameId;
|
||||
if ( ubTownID != BLANK_SECTOR )
|
||||
{
|
||||
@@ -2126,6 +2120,9 @@ FLOAT CalcHourlyVolunteerGain()
|
||||
|
||||
loyalpopulation += gTownLoyalty[ubTownID].ubRating * population / 100;
|
||||
}
|
||||
// modifier increase for every farm we control
|
||||
else if ( IsSectorFarm( sX, sY ) )
|
||||
populationmodifier += gGameExternalOptions.dMilitiaVolunteerMultiplierFarm;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user