mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
Deleted 'mobile militia feature', as 'militia strategic command' offered better ways to move militia.
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23649&goto=352592&#msg_352592 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8542 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -468,9 +468,9 @@ void AddTextToTownBox( void )
|
||||
}
|
||||
|
||||
// prisoners
|
||||
swprintf( wString, L"%s:", pwTownInfoStrings[ 13 ] );
|
||||
swprintf( wString, L"%s:", pwTownInfoStrings[ 12 ] );
|
||||
AddMonoString( &hStringHandle, wString );
|
||||
swprintf( wString, pwTownInfoStrings[14], numprisoners, capacity );
|
||||
swprintf( wString, pwTownInfoStrings[13], numprisoners, capacity );
|
||||
AddSecondColumnMonoString( &hStringHandle, wString );
|
||||
|
||||
for ( int i = 0; i < PRISONER_MAX; ++i )
|
||||
@@ -479,7 +479,7 @@ void AddTextToTownBox( void )
|
||||
{
|
||||
swprintf( wString, L"" );
|
||||
AddMonoString( &hStringHandle, wString );
|
||||
swprintf( wString, pwTownInfoStrings[15 + i], aPrisoners[i] );
|
||||
swprintf( wString, pwTownInfoStrings[14 + i], aPrisoners[i] );
|
||||
AddSecondColumnMonoString( &hStringHandle, wString );
|
||||
}
|
||||
}
|
||||
@@ -817,8 +817,7 @@ void AddCommonInfoToBox(void)
|
||||
// No/Yes
|
||||
swprintf( wString, L"%s", pwMiscSectorStrings[ ( StrategicMap[ CALCULATE_STRATEGIC_INDEX( bCurrentTownMineSectorX, bCurrentTownMineSectorY ) ].fEnemyControlled ) ? 6 : 5 ] );
|
||||
AddSecondColumnMonoString( &hStringHandle, wString );
|
||||
|
||||
|
||||
|
||||
// militia - is there any?
|
||||
swprintf( wString, L"%s:", pwTownInfoStrings[ 11 ] );
|
||||
AddMonoString( &hStringHandle, wString );
|
||||
@@ -842,23 +841,25 @@ void AddCommonInfoToBox(void)
|
||||
|
||||
// HEADROCK HAM 3.6: Only show these for sectors that have a training facility
|
||||
BOOLEAN fMilitiaTrainingAllowed = FALSE;
|
||||
BOOLEAN fMobileTrainingAllowed = FALSE;
|
||||
|
||||
// percentage of current militia squad training completed
|
||||
swprintf( wString, L"%s:", pwTownInfoStrings[ 10 ] );
|
||||
AddMonoString( &hStringHandle, wString );
|
||||
|
||||
// Sector contains Militia training facility?
|
||||
for (UINT8 ubCounter = 0; ubCounter < MAX_NUM_FACILITY_TYPES; ubCounter++)
|
||||
for (UINT8 ubCounter = 0; ubCounter < MAX_NUM_FACILITY_TYPES; ++ubCounter)
|
||||
{
|
||||
if (gFacilityLocations[usSectorValue][ubCounter].fFacilityHere)
|
||||
{
|
||||
if (gFacilityTypes[ubCounter].ubMilitiaTrainersAllowed)
|
||||
{
|
||||
fMilitiaTrainingAllowed = TRUE;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (fMilitiaTrainingAllowed)
|
||||
{
|
||||
// Show percent completed
|
||||
@@ -870,37 +871,8 @@ void AddCommonInfoToBox(void)
|
||||
// Show N/A
|
||||
AddSecondColumnMonoString( &hStringHandle, New113HAMMessage[19] );
|
||||
}
|
||||
|
||||
// HEADROCK HAM 3.6: percentage of current Mobile Militia squad training completed
|
||||
swprintf( wString, L"%s:", pwTownInfoStrings[ 12 ] );
|
||||
AddMonoString( &hStringHandle, wString );
|
||||
|
||||
// Sector contains Mobile training facility?
|
||||
for (UINT8 ubCounter = 0; ubCounter < MAX_NUM_FACILITY_TYPES; ubCounter++)
|
||||
{
|
||||
if (gFacilityLocations[usSectorValue][ubCounter].fFacilityHere)
|
||||
{
|
||||
if (gFacilityTypes[ubCounter].ubMobileMilitiaTrainersAllowed)
|
||||
{
|
||||
fMobileTrainingAllowed = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (fMobileTrainingAllowed)
|
||||
{
|
||||
// Show percentage completed
|
||||
swprintf( wString, L"%d%%%%", SectorInfo[ usSectorValue ].ubMobileMilitiaTrainingPercentDone );
|
||||
AddSecondColumnMonoString( &hStringHandle, wString );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Show N/A
|
||||
AddSecondColumnMonoString( &hStringHandle, New113HAMMessage[19] );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// enemy forces
|
||||
swprintf( wString, L"%s:", pwMiscSectorStrings[ 0 ] );
|
||||
AddMonoString( &hStringHandle, wString );
|
||||
|
||||
Reference in New Issue
Block a user