mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- new feature: we can now equip militia with gear from sectors, see http://www.bears-pit.com/board/ubbthreads.php/topics/315664.html#Post315664 for more information
- increased the object flag size to UINT64, this breaks savegame compatibility git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5869 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3241,6 +3241,38 @@ void DrawHatchOnInventory( UINT32 uiSurface, UINT16 usPosX, UINT16 usPosY, UINT1
|
||||
UnLockVideoSurface( uiSurface );
|
||||
}
|
||||
|
||||
void DrawHatchOnInventory_MilitiaAccess( UINT32 uiSurface, UINT16 usPosX, UINT16 usPosY, UINT16 usWidth, UINT16 usHeight, UINT16 usColor )
|
||||
{
|
||||
UINT8 *pDestBuf;
|
||||
UINT32 uiDestPitchBYTES;
|
||||
SGPRect ClipRect;
|
||||
static UINT8 Pattern[8][8] =
|
||||
{
|
||||
1,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,1,0,0,
|
||||
0,0,1,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,1,
|
||||
0,0,0,0,1,0,0,0,
|
||||
0,1,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,1,0,
|
||||
0,0,0,1,0,0,0,0
|
||||
};
|
||||
// CHRISL:
|
||||
ClipRect.iLeft = usPosX-1;
|
||||
ClipRect.iRight = usPosX + usWidth-1;
|
||||
ClipRect.iTop = usPosY;
|
||||
ClipRect.iBottom = usPosY + usHeight;
|
||||
|
||||
pDestBuf = LockVideoSurface( uiSurface, &uiDestPitchBYTES );
|
||||
if(usColor == 0){
|
||||
Blt16BPPBufferPixelateRect( (UINT16*)pDestBuf, uiDestPitchBYTES, &ClipRect, Pattern );
|
||||
}
|
||||
else{
|
||||
Blt16BPPBufferPixelateRectWithColor( (UINT16*)pDestBuf, uiDestPitchBYTES, &ClipRect, Pattern, usColor );
|
||||
}
|
||||
UnLockVideoSurface( uiSurface );
|
||||
}
|
||||
|
||||
|
||||
UINT32 CalcShopKeeperItemPrice( BOOLEAN fDealerSelling, BOOLEAN fUnitPriceOnly, UINT16 usItemID, FLOAT dModifier, OBJECTTYPE *pItemObject )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user