mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
-fixed camo kit only adding 50% camo
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@402 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" };
|
||||
#else
|
||||
|
||||
//RELEASE BUILD VERSION
|
||||
INT16 zVersionLabel[256] = { L"Release v1.13.401" };
|
||||
INT16 zVersionLabel[256] = { L"Release v1.13.402" };
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
+4
-4
@@ -5750,10 +5750,10 @@ BOOLEAN ApplyCammo( SOLDIERTYPE * pSoldier, OBJECTTYPE * pObj, BOOLEAN *pfGoodAP
|
||||
bPointsToUse = __min( bPointsToUse, usTotalKitPoints );
|
||||
|
||||
//figure out proportions of each to be applied, one item can theoretically have more than one camouflage type this way
|
||||
int urban = (int)(Item[pObj->usItem].urbanCamobonus * bPointsToUse / itemCamo );
|
||||
int jungle = (int)(Item[pObj->usItem].camobonus * bPointsToUse / itemCamo );
|
||||
int desert = (int)(Item[pObj->usItem].desertCamobonus * bPointsToUse / itemCamo );
|
||||
int snow = (int)(Item[pObj->usItem].snowCamobonus * bPointsToUse / itemCamo );
|
||||
int urban = (int)(Item[pObj->usItem].urbanCamobonus * bPointsToUse * 2 / 100 );
|
||||
int jungle = (int)(Item[pObj->usItem].camobonus * bPointsToUse * 2 / 100 );
|
||||
int desert = (int)(Item[pObj->usItem].desertCamobonus * bPointsToUse * 2 / 100 );
|
||||
int snow = (int)(Item[pObj->usItem].snowCamobonus * bPointsToUse * 2 / 100 );
|
||||
|
||||
pSoldier->bCamo = __min( 100, pSoldier->bCamo + jungle );
|
||||
pSoldier->urbanCamo = __min( 100, pSoldier->urbanCamo + urban );
|
||||
|
||||
Reference in New Issue
Block a user