mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user