SAM site repair is now an assignment. For this, old code has been repurposed.

For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=22916&goto=347318&#msg_347318

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8314 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2016-10-14 17:20:23 +00:00
parent e38e37d99c
commit a0c2b0a39a
6 changed files with 101 additions and 255 deletions
+9
View File
@@ -42,6 +42,7 @@
#include "Strategic Event Handler.h"
#include "Food.h" // added by Flugente
#include "Queen Command.h" // added by Flugente for FindUnderGroundSector(...)
#include "strategic.h" // added by Flugente
#endif
#ifdef JA2UB
@@ -2336,6 +2337,14 @@ void HandleRenderFaceAdjustments( FACETYPE *pFace, BOOLEAN fDisplayBuffer, BOOLE
sPtsAvailable -= ( sPtsAvailable % VEHICLE_REPAIR_POINTS_DIVISOR );
usMaximumPts -= ( usMaximumPts % VEHICLE_REPAIR_POINTS_DIVISOR );
}
else if ( Menptr[pFace->ubSoldierID].flags.fFixingSAMSite )
{
sPtsAvailable = (sPtsAvailable / SAM_SITE_REPAIR_DIVISOR);
INT16 sector = CALCULATE_STRATEGIC_INDEX( Menptr[pFace->ubSoldierID].sSectorX, Menptr[pFace->ubSoldierID].sSectorY );
usMaximumPts = 100 - StrategicMap[sector].bSAMCondition;
}
break;