mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Slightly speed up overhead map display
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8488 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+21
-15
@@ -1642,6 +1642,13 @@ void RenderOverheadOverlays()
|
||||
//ITEMS OVERLAY
|
||||
if( !gfTacticalPlacementGUIActive )
|
||||
{
|
||||
// colours
|
||||
UINT16 red = Get16BPPColor(FROMRGB(255, 0, 0));
|
||||
UINT16 black = Get16BPPColor(FROMRGB(0, 0, 0));
|
||||
UINT16 blue = Get16BPPColor(FROMRGB(0, 0, 255));
|
||||
UINT16 green = Get16BPPColor(FROMRGB(0, 255, 0));
|
||||
UINT16 white = Get16BPPColor(FROMRGB(255, 255, 255));
|
||||
|
||||
for( i = 0 ; i < guiNumWorldItems; ++i )
|
||||
{
|
||||
pWorldItem = &gWorldItems[ i ];
|
||||
@@ -1682,23 +1689,22 @@ void RenderOverheadOverlays()
|
||||
|
||||
/*sX += iOffsetHorizontal + gsStartRestrictedX;
|
||||
sY += iOffsetVertical + gsStartRestrictedY;*/
|
||||
|
||||
if ( gfRadarCurrentGuyFlash )
|
||||
{
|
||||
usLineColor = Get16BPPColor( FROMRGB( 0, 0, 0 ) );
|
||||
}
|
||||
else switch( pWorldItem->bVisible )
|
||||
{
|
||||
case HIDDEN_ITEM: usLineColor = Get16BPPColor( FROMRGB( 0, 0, 255 ) ); break;
|
||||
case BURIED: usLineColor = Get16BPPColor( FROMRGB( 255, 0, 0 ) ); break;
|
||||
case HIDDEN_IN_OBJECT: usLineColor = Get16BPPColor( FROMRGB( 0, 0, 255 ) ); break;
|
||||
case INVISIBLE: usLineColor = Get16BPPColor( FROMRGB( 0, 255, 0 ) ); break;
|
||||
case VISIBLE: usLineColor = Get16BPPColor( FROMRGB( 255, 255, 255 ) ); break;
|
||||
}
|
||||
|
||||
|
||||
if ( gfOverItemPool && gsOveritemPoolGridNo == pWorldItem->sGridNo )
|
||||
{
|
||||
usLineColor = Get16BPPColor( FROMRGB( 255, 0, 0 ) );
|
||||
usLineColor = red;
|
||||
}
|
||||
else if (gfRadarCurrentGuyFlash)
|
||||
{
|
||||
usLineColor = black;
|
||||
}
|
||||
else switch (pWorldItem->bVisible)
|
||||
{
|
||||
case HIDDEN_ITEM: usLineColor = blue; break;
|
||||
case BURIED: usLineColor = red; break;
|
||||
case HIDDEN_IN_OBJECT: usLineColor = blue; break;
|
||||
case INVISIBLE: usLineColor = green; break;
|
||||
case VISIBLE: usLineColor = white; break;
|
||||
}
|
||||
|
||||
PixelDraw( FALSE, sX, sY, usLineColor, pDestBuf );
|
||||
|
||||
Reference in New Issue
Block a user