mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
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
This commit is contained in:
@@ -4935,7 +4935,8 @@ void DrawAdvancedStats( OBJECTTYPE * gpItemDescObject )
|
|||||||
///////////////////// AIM BONUS MODIFIER
|
///////////////////// AIM BONUS MODIFIER
|
||||||
if(UsingNewCTHSystem() == false)
|
if(UsingNewCTHSystem() == false)
|
||||||
{
|
{
|
||||||
if ( GetFlatAimBonus( gpItemDescObject ) != 0 )
|
//if ( GetFlatAimBonus( gpItemDescObject ) != 0 )
|
||||||
|
if ( GetAimBonus( gpItemDescSoldier, gpItemDescObject, 100, 1 ) != 0 )
|
||||||
{
|
{
|
||||||
if (cnt >= sFirstLine && cnt < sLastLine)
|
if (cnt >= sFirstLine && cnt < sLastLine)
|
||||||
{
|
{
|
||||||
@@ -6409,8 +6410,9 @@ void DrawWeaponValues( OBJECTTYPE * gpItemDescObject )
|
|||||||
}
|
}
|
||||||
|
|
||||||
//////////////// OCTH AIMING BONUS
|
//////////////// OCTH AIMING BONUS
|
||||||
if ( UsingNewCTHSystem() == false &&
|
//if ( UsingNewCTHSystem() == false &&
|
||||||
(GetFlatAimBonus( gpItemDescObject ) != 0 || Item[gpItemDescObject->usItem].aimbonus != 0) )
|
// (GetFlatAimBonus( gpItemDescObject ) != 0 || Item[gpItemDescObject->usItem].aimbonus != 0) )
|
||||||
|
if ( UsingNewCTHSystem() == false && GetAimBonus( gpItemDescSoldier, gpItemDescObject, 100, 1 ) != 0 )
|
||||||
{
|
{
|
||||||
// Set line to draw into
|
// Set line to draw into
|
||||||
ubNumLine = 4;
|
ubNumLine = 4;
|
||||||
|
|||||||
Reference in New Issue
Block a user