From 76511902e085f43d1a737ba528b932822f13f3e5 Mon Sep 17 00:00:00 2001 From: silversurfer Date: Wed, 19 Mar 2014 15:52:15 +0000 Subject: [PATCH] fix for aim bonus attribute display in UDB http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/331382/Re:_AIMNAS_Bug_reports.html#Post331382 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7094 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Interface Enhanced.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Tactical/Interface Enhanced.cpp b/Tactical/Interface Enhanced.cpp index 7e95592b3..0ca0e4bec 100644 --- a/Tactical/Interface Enhanced.cpp +++ b/Tactical/Interface Enhanced.cpp @@ -4935,7 +4935,8 @@ void DrawAdvancedStats( OBJECTTYPE * gpItemDescObject ) ///////////////////// AIM BONUS MODIFIER if(UsingNewCTHSystem() == false) { - if ( GetFlatAimBonus( gpItemDescObject ) != 0 ) + //if ( GetFlatAimBonus( gpItemDescObject ) != 0 ) + if ( GetAimBonus( gpItemDescSoldier, gpItemDescObject, 100, 1 ) != 0 ) { if (cnt >= sFirstLine && cnt < sLastLine) { @@ -6409,8 +6410,9 @@ void DrawWeaponValues( OBJECTTYPE * gpItemDescObject ) } //////////////// OCTH AIMING BONUS - if ( UsingNewCTHSystem() == false && - (GetFlatAimBonus( gpItemDescObject ) != 0 || Item[gpItemDescObject->usItem].aimbonus != 0) ) + //if ( UsingNewCTHSystem() == false && + // (GetFlatAimBonus( gpItemDescObject ) != 0 || Item[gpItemDescObject->usItem].aimbonus != 0) ) + if ( UsingNewCTHSystem() == false && GetAimBonus( gpItemDescSoldier, gpItemDescObject, 100, 1 ) != 0 ) { // Set line to draw into ubNumLine = 4;