mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
If MILITIA_STRATEGIC_COMMAND_REQUIRES_MERC is FALSE, militia can be controlled everywhere even without staffing a HQ
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8548 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+2
-1
@@ -2124,7 +2124,8 @@ void LoadGameExternalOptions()
|
||||
gGameExternalOptions.dMilitiaVolunteerMultiplierFarm = iniReader.ReadFloat( "Militia Volunteer Pool Settings", "MILITIA_VOLUNTEER_POOL_MULTIPLIER_FARM", 0.05f, 0.0f, 1.0f );
|
||||
|
||||
//################# Militia Strategic Movement Settings ##################
|
||||
gGameExternalOptions.fMilitiaStrategicCommand = iniReader.ReadBoolean("Militia Strategic Movement Settings", "ALLOW_MILITIA_STRATEGIC_COMMAND", FALSE );
|
||||
gGameExternalOptions.fMilitiaStrategicCommand = iniReader.ReadBoolean( "Militia Strategic Movement Settings", "ALLOW_MILITIA_STRATEGIC_COMMAND", FALSE );
|
||||
gGameExternalOptions.fMilitiaStrategicCommand_MercRequired = iniReader.ReadBoolean( "Militia Strategic Movement Settings", "MILITIA_STRATEGIC_COMMAND_REQUIRES_MERC", TRUE );
|
||||
|
||||
// SANDRO - added several bonuses for militia
|
||||
//################# Militia Strength Settings ##################
|
||||
|
||||
@@ -478,6 +478,7 @@ typedef struct
|
||||
|
||||
// Flugente: militia movement
|
||||
BOOLEAN fMilitiaStrategicCommand;
|
||||
BOOLEAN fMilitiaStrategicCommand_MercRequired;
|
||||
|
||||
BOOLEAN gfAllowReinforcements;
|
||||
BOOLEAN gfAllowReinforcementsOnlyInCity;
|
||||
|
||||
+9
-9
@@ -15,9 +15,9 @@
|
||||
#ifdef JA2EDITOR
|
||||
|
||||
#ifdef JA2UB
|
||||
CHAR16 zVersionLabel[256] = { L"Unfinished Business - Map Editor v1.13.8545 (Development Build)" };
|
||||
CHAR16 zVersionLabel[256] = { L"Unfinished Business - Map Editor v1.13.8548 (Development Build)" };
|
||||
#else
|
||||
CHAR16 zVersionLabel[256] = { L"Map Editor v1.13.8545 (Development Build)" };
|
||||
CHAR16 zVersionLabel[256] = { L"Map Editor v1.13.8548 (Development Build)" };
|
||||
#endif
|
||||
|
||||
// ------------------------------
|
||||
@@ -27,11 +27,11 @@
|
||||
|
||||
//DEBUG BUILD VERSION
|
||||
#ifdef JA2UB
|
||||
CHAR16 zVersionLabel[256] = { L"Debug: Unfinished Business - v1.13.8545 (Development Build)" };
|
||||
CHAR16 zVersionLabel[256] = { L"Debug: Unfinished Business - v1.13.8548 (Development Build)" };
|
||||
#elif defined (JA113DEMO)
|
||||
CHAR16 zVersionLabel[256] = { L"Debug: JA2 Demo - v1.13.8545 (Development Build)" };
|
||||
CHAR16 zVersionLabel[256] = { L"Debug: JA2 Demo - v1.13.8548 (Development Build)" };
|
||||
#else
|
||||
CHAR16 zVersionLabel[256] = { L"Debug: v1.13.8545 (Development Build)" };
|
||||
CHAR16 zVersionLabel[256] = { L"Debug: v1.13.8548 (Development Build)" };
|
||||
#endif
|
||||
|
||||
#elif defined CRIPPLED_VERSION
|
||||
@@ -46,16 +46,16 @@
|
||||
|
||||
//RELEASE BUILD VERSION
|
||||
#ifdef JA2UB
|
||||
CHAR16 zVersionLabel[256] = { L"Release Unfinished Business - v1.13.8545 (Development Build)" };
|
||||
CHAR16 zVersionLabel[256] = { L"Release Unfinished Business - v1.13.8548 (Development Build)" };
|
||||
#elif defined (JA113DEMO)
|
||||
CHAR16 zVersionLabel[256] = { L"Release JA2 Demo - v1.13.8545 (Development Build)" };
|
||||
CHAR16 zVersionLabel[256] = { L"Release JA2 Demo - v1.13.8548 (Development Build)" };
|
||||
#else
|
||||
CHAR16 zVersionLabel[256] = { L"Release v1.13.8545 (Development Build)" };
|
||||
CHAR16 zVersionLabel[256] = { L"Release v1.13.8548 (Development Build)" };
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
CHAR8 czVersionNumber[16] = { "Build 18.03.11" }; //YY.MM.DD
|
||||
CHAR8 czVersionNumber[16] = { "Build 18.03.14" }; //YY.MM.DD
|
||||
CHAR16 zTrackingNumber[16] = { L"Z" };
|
||||
|
||||
// SAVE_GAME_VERSION is defined in header, change it there
|
||||
|
||||
@@ -21522,6 +21522,10 @@ void MoveItemMenuMvtCallback(MOUSE_REGION * pRegion, INT32 iReason )
|
||||
|
||||
BOOLEAN MercStaffsMilitaryHQ()
|
||||
{
|
||||
// if we don't need a HQ, this is easy
|
||||
if ( !gGameExternalOptions.fMilitiaStrategicCommand_MercRequired )
|
||||
return TRUE;
|
||||
|
||||
SOLDIERTYPE *pSoldier = NULL;
|
||||
UINT32 uiCnt = 0;
|
||||
UINT32 firstid = gTacticalStatus.Team[ OUR_TEAM ].bFirstID;
|
||||
|
||||
@@ -105,26 +105,36 @@
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<TargetName>$(JA2Config)_$(JA2LangPrefix)_$(Configuration)</TargetName>
|
||||
<TargetExt>.exe</TargetExt>
|
||||
<OutDir>..\..\..\JA2 C17\</OutDir>
|
||||
<IntDir>..\..\..\JA2 C17\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='MapEditorD|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<TargetExt>.exe</TargetExt>
|
||||
<TargetName>MapEditor_$(JA2LangPrefix)_Debug</TargetName>
|
||||
<OutDir>..\..\..\JA2 C17\</OutDir>
|
||||
<IntDir>..\..\..\JA2 C17\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<TargetName>$(JA2Config)_$(JA2LangPrefix)_$(Configuration)</TargetName>
|
||||
<TargetExt>.exe</TargetExt>
|
||||
<OutDir>..\..\..\JA2 C17\</OutDir>
|
||||
<IntDir>..\..\..\JA2 C17\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='MapEditor|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<TargetName>MapEditor_$(JA2LangPrefix)_Release</TargetName>
|
||||
<TargetExt>.exe</TargetExt>
|
||||
<OutDir>..\..\..\JA2 C17\</OutDir>
|
||||
<IntDir>..\..\..\JA2 C17\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_WithDebugInfo|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<TargetName>$(JA2Config)_$(JA2LangPrefix)_$(Configuration)</TargetName>
|
||||
<TargetExt>.exe</TargetExt>
|
||||
<OutDir>..\..\..\JA2 C17\</OutDir>
|
||||
<IntDir>..\..\..\JA2 C17\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
|
||||
Reference in New Issue
Block a user