mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
New Feature: strategic militia command allows ordering militia around in the map if someoen performs the STRATEGIC_MILITIA_MOVEMENT facility assignment.
requires GameDir >= r1946 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6943 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -7438,6 +7438,11 @@ void GetMapKeyboardInput( UINT32 *puiNewEvent )
|
||||
//activate autoresolve in prebattle interface.
|
||||
ActivatePreBattleAutoresolveAction();
|
||||
}
|
||||
// Flugente: militia orders
|
||||
else if ( SetMilitiaMovementOrder(sSelMapX, sSelMapY, iCurrentMapSectorZ, MILITIA_MOVE_WEST) )
|
||||
{
|
||||
;
|
||||
}
|
||||
else
|
||||
{
|
||||
// only handle border button keyboard equivalents if the button is visible!
|
||||
@@ -7491,6 +7496,11 @@ void GetMapKeyboardInput( UINT32 *puiNewEvent )
|
||||
TestDumpStatChanges();
|
||||
}
|
||||
#endif
|
||||
// Flugente: militia orders
|
||||
if ( SetMilitiaMovementOrder(sSelMapX, sSelMapY, iCurrentMapSectorZ, MILITIA_MOVE_EAST) )
|
||||
{
|
||||
;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'D':
|
||||
@@ -7950,6 +7960,11 @@ void GetMapKeyboardInput( UINT32 *puiNewEvent )
|
||||
gfSaveGame = TRUE;
|
||||
RequestTriggerExitFromMapscreen( MAP_EXIT_TO_SAVE );
|
||||
}
|
||||
// Flugente: militia orders
|
||||
else if ( SetMilitiaMovementOrder(sSelMapX, sSelMapY, iCurrentMapSectorZ, MILITIA_MOVE_SOUTH) )
|
||||
{
|
||||
;
|
||||
}
|
||||
else if(gGameExternalOptions.fEnableInventoryPoolQ && fShowMapInventoryPool == TRUE)//dnl ch51 081009
|
||||
{
|
||||
SortInventoryPoolQ();
|
||||
@@ -8192,6 +8207,11 @@ void GetMapKeyboardInput( UINT32 *puiNewEvent )
|
||||
else if( fCtrl )
|
||||
{
|
||||
}
|
||||
// Flugente: militia orders
|
||||
else if ( SetMilitiaMovementOrder(sSelMapX, sSelMapY, iCurrentMapSectorZ, MILITIA_MOVE_NORTH) )
|
||||
{
|
||||
;
|
||||
}
|
||||
else
|
||||
{
|
||||
// only handle border button keyboard equivalents if the button is visible!
|
||||
|
||||
Reference in New Issue
Block a user