mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: various individual militia issues
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8493 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -714,7 +714,7 @@ void MoveIndividualMilitiaProfiles( UINT8 aSourceSector, UINT8 aTargetSector, UI
|
||||
}
|
||||
|
||||
// if this feature is on and we get to this point, then there aren't enough individual militia. This is odd, the player should be informed
|
||||
if ( gGameExternalOptions.fIndividualMilitia )
|
||||
if ( (usGreens + usRegulars + usElites) && gGameExternalOptions.fIndividualMilitia )
|
||||
ScreenMsg( FONT_MCOLOR_RED, MSG_INTERFACE, L"Possible error: Not enough individual militia found in MoveIndividualMilitiaProfiles" );
|
||||
}
|
||||
|
||||
@@ -748,7 +748,7 @@ void DisbandIndividualMilitia( UINT8 aSector, UINT8 usGreens, UINT8 usRegulars,
|
||||
}
|
||||
|
||||
// if this feature is on and we get to this point, then there aren't enough individual militia. This is odd, the player should be informed
|
||||
if ( gGameExternalOptions.fIndividualMilitia )
|
||||
if ( (usGreens + usRegulars + usElites) && gGameExternalOptions.fIndividualMilitia )
|
||||
ScreenMsg( FONT_MCOLOR_RED, MSG_INTERFACE, L"Possible error: Not enough individual militia found in DisbandIndividualMilitia" );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user