mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +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;
|
||||
|
||||
@@ -575,7 +575,7 @@ INV_DESC_REGIONS gItemDescLBEBackground[4]; // Coordinates for displaying LBE ba
|
||||
INV_DESC_REGIONS gItemDescGenHeaderRegions[3]; // Header text regions for various parts of the General Tab
|
||||
INV_DESC_REGIONS gItemDescGenIndexRegions[3][4]; // Index text regions for various parts of the General Tab
|
||||
INV_DESC_REGIONS gItemDescGenRegions[NUM_UDB_GEN_LINES * 2][4]; // Data regions, 4 sub-columns each
|
||||
INV_DESC_REGIONS gItemDescGenSecondaryRegions[26]; // Secondary data regions, 3x5
|
||||
INV_DESC_REGIONS gItemDescGenSecondaryRegions[GEN_SEC_REGION_ENTRIES]; // Secondary data regions, 6 lines x 4 icons
|
||||
INV_DESC_REGIONS gItemDescTextRegions[9]; // Main description regions
|
||||
INV_DESC_REGIONS gItemDescAdvIndexRegions[1][4];
|
||||
INV_DESC_REGIONS gItemDescAdvRegions[NUM_UDB_ADV_LINES][4]; // Advanced data regions, 4 sub-columns each
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#define NUM_UDB_GEN_LINES 12
|
||||
#define NUM_UDB_ADV_LINES 13 // Flugente FTW 1.1: 12->13
|
||||
#define GEN_SEC_REGION_ENTRIES 24 // 6 lines x 4 icons
|
||||
|
||||
// HEADROCK HAM 4: These rectangle definitions are used in UDB to determine locations for icons, data, and tooltip
|
||||
// regions. They replace the plethora of region data provided in EDB.
|
||||
@@ -36,7 +37,7 @@ extern INV_DESC_REGIONS gItemDescLBEBackground[4]; // Coordinates for displaying
|
||||
extern INV_DESC_REGIONS gItemDescGenHeaderRegions[3]; // Header text regions for various parts of the General Tab
|
||||
extern INV_DESC_REGIONS gItemDescGenIndexRegions[3][4]; // Index text regions for various parts of the General Tab
|
||||
extern INV_DESC_REGIONS gItemDescGenRegions[NUM_UDB_GEN_LINES * 2][4]; // Data regions, 4 sub-columns each
|
||||
extern INV_DESC_REGIONS gItemDescGenSecondaryRegions[26]; // Secondary data regions, 3x5 for now (possible 3x6?)
|
||||
extern INV_DESC_REGIONS gItemDescGenSecondaryRegions[GEN_SEC_REGION_ENTRIES]; // Secondary data regions, 6 lines x 4 icons
|
||||
extern INV_DESC_REGIONS gItemDescTextRegions[9]; // Main description regions
|
||||
extern INV_DESC_REGIONS gItemDescAdvIndexRegions[1][4];
|
||||
extern INV_DESC_REGIONS gItemDescAdvRegions[NUM_UDB_ADV_LINES][4]; // Advanced data regions, 4 sub-columns each
|
||||
|
||||
Reference in New Issue
Block a user