Enabled hiding of NAS attachment slots by making their X or Y position >= 300

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5262 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2012-05-05 06:47:26 +00:00
parent cc7afa2603
commit 8f50018b59
2 changed files with 225 additions and 197 deletions
+11
View File
@@ -708,6 +708,17 @@ void InitEDBCoords(OBJECTTYPE * pObject)
void SetupItemDescAttachmentsXY(UINT8 ID, INT16 sX, INT16 sY, INT16 sHeight, INT16 sWidth, INT16 sBarDx, INT16 sBarDy)
{
//Madd: enable hiding the inventory slots by placing them outside of the viewable area
if ( sX >= 300 || sY >= 300 )
{
sX = 0;
sY = 0;
sHeight = 0;
sWidth = 0;
sBarDx = 0;
sBarDy = 0;
}
gItemDescAttachmentsXY[ID].sX = sX;
gItemDescAttachmentsXY[ID].sY = sY;
gItemDescAttachmentsXY[ID].sHeight = sHeight;