mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fixes (by Sevenfm):
- incorrect sized array for secondary item stat regions - incorrect check for secondary item stat display removed git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8248 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2323,7 +2323,7 @@ void InternalInitEDBTooltipRegion( OBJECTTYPE * gpItemDescObject, UINT32 guiCurr
|
||||
iFirstDataRegion = iRegionsCreated;
|
||||
CHAR16 pStr[1000];
|
||||
|
||||
for (cnt = 0; cnt < 36; cnt++)
|
||||
for (cnt = 0; cnt < GEN_SEC_REGION_ENTRIES; cnt++)
|
||||
{
|
||||
MSYS_DefineRegion( &gUDBFasthelpRegions[ iRegionsCreated ],
|
||||
(INT16)(gItemDescGenSecondaryRegions[cnt].sLeft),
|
||||
@@ -5885,12 +5885,6 @@ void DrawSecondaryStats( OBJECTTYPE * gpItemDescObject )
|
||||
return;
|
||||
}
|
||||
|
||||
if (Item[ gpItemDescObject->usItem ].usItemClass & (IC_WEAPON || IC_PUNCH))
|
||||
{
|
||||
// Weapons have no space on their UDB General page to show Secondary Stats anyway.
|
||||
return;
|
||||
}
|
||||
|
||||
INT32 cnt = 0;
|
||||
INT32 sOffsetX = 0;
|
||||
INT32 sOffsetY = 0;
|
||||
|
||||
Reference in New Issue
Block a user