From 01123846523315d08d8f9176be26480c7d780d23 Mon Sep 17 00:00:00 2001 From: Flugente Date: Sat, 17 Nov 2012 14:20:44 +0000 Subject: [PATCH] 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 --- Strategic/Assignments.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Strategic/Assignments.cpp b/Strategic/Assignments.cpp index caf8b0c79..3504b2517 100644 --- a/Strategic/Assignments.cpp +++ b/Strategic/Assignments.cpp @@ -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