mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user