Fix: under the advanced repair system, items other than guns and armour weren't repairable

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5692 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2012-11-17 14:20:44 +00:00
parent 3a6e4260a5
commit 0112384652
+6 -5
View File
@@ -4163,12 +4163,13 @@ BOOLEAN IsItemRepairable( UINT16 usItem, INT16 bStatus, INT16 bThreshold )
{
if ( gGameExternalOptions.fAdvRepairSystem )
{
if ( ( ((Item[usItem].usItemClass & IC_WEAPON) != 0) || Item[usItem].usItemClass == IC_ARMOUR ) && bStatus < bThreshold )
return ( TRUE );
if ( ((Item[usItem].usItemClass & IC_WEAPON|IC_ARMOUR) != 0) && bStatus >= bThreshold )
// nay
return ( FALSE );
}
else
// yep
return ( TRUE );
// yep
return ( TRUE );
}
// nope