From ba81d0de5a57b2e6f2bc4425c4a1692762c1d136 Mon Sep 17 00:00:00 2001 From: ChrisL Date: Thu, 9 Jun 2011 17:36:58 +0000 Subject: [PATCH] BUGFIX 526 - Bullet graphic rendering was causing an internal display error when attaching/removing Ammo attachments from the tactical panel. We don't need to actually redisplay the bullet graphic, however, in order to change the text that's on the bullet graphic. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4491 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Interface Items.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Tactical/Interface Items.cpp b/Tactical/Interface Items.cpp index fff1c91a..cdddaf5d 100644 --- a/Tactical/Interface Items.cpp +++ b/Tactical/Interface Items.cpp @@ -3815,9 +3815,6 @@ void RenderBulletIcon(OBJECTTYPE *pObject, UINT32 ubStatusIndex) FilenameForBPP("INTERFACE\\infobox.sti", ubString); - UnloadButtonImage(giItemDescAmmoButtonImages); - giItemDescAmmoButtonImages = LoadButtonImage(ubString,AmmoTypes[(*pObject)[ubStatusIndex]->data.gun.ubGunAmmoType].grayed,AmmoTypes[(*pObject)[ubStatusIndex]->data.gun.ubGunAmmoType].offNormal,-1,AmmoTypes[(*pObject)[ubStatusIndex]->data.gun.ubGunAmmoType].onNormal,-1 ); - //swprintf( pStr, L"0" ); SpecifyButtonText( giItemDescAmmoButton, pStr ); }