mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Bugfix for JaggZilla bug #566
- max coolness was calculated wrong and was below min coolness. This couldn't work well... git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6485 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1028,7 +1028,9 @@ UINT8 GetCurrentSuitabilityForItem( INT8 bArmsDealer, UINT16 usItemIndex, BOOLEA
|
|||||||
ubMinCoolness += armsDealerInfo[bArmsDealer].addToCoolness;
|
ubMinCoolness += armsDealerInfo[bArmsDealer].addToCoolness;
|
||||||
ubMaxCoolness += armsDealerInfo[bArmsDealer].addToCoolness;
|
ubMaxCoolness += armsDealerInfo[bArmsDealer].addToCoolness;
|
||||||
ubMinCoolness = max( armsDealerInfo[bArmsDealer].minCoolness, min( 9, ubMinCoolness ) );
|
ubMinCoolness = max( armsDealerInfo[bArmsDealer].minCoolness, min( 9, ubMinCoolness ) );
|
||||||
ubMaxCoolness = max( 2, min( armsDealerInfo[bArmsDealer].maxCoolness, ubMaxCoolness ) );
|
// silversurfer: max coolness should never be lower than min coolness!
|
||||||
|
//ubMaxCoolness = max( 2, min( armsDealerInfo[bArmsDealer].maxCoolness, ubMaxCoolness ) );
|
||||||
|
ubMaxCoolness = max( (ubMinCoolness + 1), min( armsDealerInfo[bArmsDealer].maxCoolness, ubMaxCoolness ) );
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
if (bArmsDealer == ARMS_DEALER_TONY)
|
if (bArmsDealer == ARMS_DEALER_TONY)
|
||||||
|
|||||||
Reference in New Issue
Block a user