mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
Fix:
- when USE_XML_SQUADNAMES was TRUE, the squad box was shifted upwards over the column headers, causing clipping issues - when READ_PROFILE_DATA_FROM_XML was TRUE, the game would still read profile data from prof.dat, if the old inventory system was used git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8868 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -14422,10 +14422,12 @@ void CreateSquadBox( void )
|
||||
GetBoxPosition( ghSquadBox, &pPoint);
|
||||
GetBoxSize( ghSquadBox, &pDimensions );
|
||||
|
||||
if( giBoxY + pDimensions.iBottom > 479 )
|
||||
// silversurfer: This doesn't make sense. Even at 800x600 the squad box can be displayed without this adjustment.
|
||||
// The adjustment causes issues when USE_XML_SQUADNAMES is TRUE, because it will move the squad box up over the column header, which looks bad and causes clipping issues. Disabled.
|
||||
/*if( giBoxY + pDimensions.iBottom > 479 )
|
||||
{
|
||||
pPoint.iY = SquadPosition.iY = 479 - pDimensions.iBottom;
|
||||
}
|
||||
}*/
|
||||
|
||||
SetBoxPosition( ghSquadBox, pPoint );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user