mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Additional Mobile Militia improvements from Rev: 6544 (by Moa)
- popup for training mobiles allowed training when above maximum git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6548 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -15623,6 +15623,10 @@ BOOLEAN CanCharacterTrainMobileMilitiaWithErrorReport( SOLDIERTYPE *pSoldier )
|
|||||||
return( FALSE );
|
return( FALSE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( 100 <= GetMobileMilitiaQuota( TRUE ) )
|
||||||
|
return ( FALSE );
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////
|
///////////////////////////////
|
||||||
// Test for required Leadership
|
// Test for required Leadership
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#include "MilitiaSquads.h"
|
#include "MilitiaSquads.h"
|
||||||
#include "Reinforcement.h"
|
#include "Reinforcement.h"
|
||||||
#include "Inventory Choosing.h" // added by Flugente for MoveOneMilitiaEquipmentSet() and MoveMilitiaEquipment()
|
#include "Inventory Choosing.h" // added by Flugente for MoveOneMilitiaEquipmentSet() and MoveMilitiaEquipment()
|
||||||
#include "message.h" // added by Flugente for ScreenMsg()
|
|
||||||
|
|
||||||
// Debug defines
|
// Debug defines
|
||||||
|
|
||||||
@@ -2377,7 +2376,7 @@ UINT8 GetMobileMilitiaQuota( BOOLEAN printMessage )
|
|||||||
UINT8 iTownsUnderPlayerControl = 0, iCurrentProgress = 0, iMaxProgress = 0, iNumRebelsInPlayerTeam = 0;
|
UINT8 iTownsUnderPlayerControl = 0, iCurrentProgress = 0, iMaxProgress = 0, iNumRebelsInPlayerTeam = 0;
|
||||||
|
|
||||||
//temp values for sectors we gonna check
|
//temp values for sectors we gonna check
|
||||||
INT8 iCurrT_ID, test;
|
INT8 iCurrT_ID;
|
||||||
UINT16 iStrategicMapID, iSectorInfoID;
|
UINT16 iStrategicMapID, iSectorInfoID;
|
||||||
SECTORINFO *pSectorInfo;
|
SECTORINFO *pSectorInfo;
|
||||||
|
|
||||||
|
|||||||
@@ -6890,11 +6890,11 @@ BOOLEAN SOLDIERTYPE::EVENT_InternalGetNewSoldierPath( INT32 sDestGridNo, UINT16
|
|||||||
fContinue = TRUE;
|
fContinue = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
iDest = FindBestPath( this, sDestGridNo, this->pathing.bLevel, usMovementAnim, COPYROUTE, fFlags );
|
iDest = FindBestPath( this, sDestGridNo, this->pathing.bLevel, usMovementAnim, COPYROUTE, fFlags );
|
||||||
fContinue = (iDest != 0);
|
fContinue = (iDest != 0);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// Only if we can get a path here
|
// Only if we can get a path here
|
||||||
if ( fContinue )
|
if ( fContinue )
|
||||||
|
|||||||
Reference in New Issue
Block a user