mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- Allows militia training for town sectors even when <townUsesLoyalty> tag set to FALSE (by Buggler)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5959 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1379,12 +1379,17 @@ BOOLEAN CanCharacterTrainMilitia( SOLDIERTYPE *pSoldier )
|
||||
|
||||
BOOLEAN DoesTownHaveRatingToTrainMilitia( INT8 bTownId )
|
||||
{
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Assignments1");
|
||||
// min loyalty rating?
|
||||
if( ( gTownLoyalty[ bTownId ].ubRating < gGameExternalOptions.iMinLoyaltyToTrain ) )
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Assignments1");
|
||||
|
||||
// Ignores check if FALSE, thereby allowing militia training for town sectors with deactivated loyalty tag
|
||||
if (gfTownUsesLoyalty[ bTownId ])
|
||||
{
|
||||
// nope
|
||||
return( FALSE );
|
||||
// min loyalty rating?
|
||||
if( ( gTownLoyalty[ bTownId ].ubRating < gGameExternalOptions.iMinLoyaltyToTrain ) )
|
||||
{
|
||||
// nope
|
||||
return( FALSE );
|
||||
}
|
||||
}
|
||||
|
||||
return( TRUE );
|
||||
|
||||
Reference in New Issue
Block a user