Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New Feature: Radio Operator  () 1 Vote
Re: New Feature: Radio Operator[message #336647] Mon, 13 October 2014 23:28 Go to previous messageGo to previous message
Flugente

 
Messages:3482
Registered:April 2009
Location: Germany
Ocular
Nav|Naf
Is it somehow intended (like there is no actual mortar in that sector and I have set militia to pick up sectors equipment) or a bug? It worked in 7516 and there is no note in changelog.txt.


This might be an intentional change, but ordering Militia bombardment can be re-enabled with the following patch:

diff --git a/Build/Tactical/Soldier Control.cpp b/Build/Tactical/Soldier Control.cpp
index ff76300..eed0b2a 100644
--- a/Build/Tactical/Soldier Control.cpp	
+++ b/Build/Tactical/Soldier Control.cpp	
@@ -17811,7 +17811,8 @@ BOOLEAN SOLDIERTYPE::CanAnyArtilleryStrikeBeOrdered( UINT32* pSectorID )		// can
 		if ( loopX < 1 || loopX >= MAP_WORLD_X - 1 || loopY < 1 || loopY >= MAP_WORLD_Y - 1 )
 			continue;
 
-		if ( IsValidArtilleryOrderSector( loopX, loopY, this->bSectorZ, this->bTeam ) )
+		if ( IsValidArtilleryOrderSector( loopX, loopY, this->bSectorZ, this->bTeam ) ||
+		     ( this->bTeam == OUR_TEAM && IsValidArtilleryOrderSector( loopX, loopY, this->bSectorZ, MILITIA_TEAM ) ) )
 		{
 			*pSectorID = (UINT32)SECTOR( loopX, loopY );
 			return TRUE;

Thanks, committed in r7564.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Feature: militia volunteer pool
Next Topic: New feature: combat jeeps
Goto Forum:
  


Current Time: Fri Jan 24 06:45:45 EET 2020

Total time taken to generate the page: 0.01446 seconds