Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix radarmap drawing in tactical inventory view #177

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions TileEngine/Radar Screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ void InitRadarScreenCoords( )
RADAR_WINDOW_STRAT_X = UI_BOTTOM_X + 1182;
RADAR_WINDOW_STRAT_Y = UI_BOTTOM_Y + 9;
RADAR_WINDOW_TM_X = xResOffset + (xResSize - 97) + 223;
RADAR_WINDOW_SM_X = xResOffset + (xResSize - 97);
}
else
{
RADAR_WINDOW_STRAT_X = xResOffset + (xResSize - 97);
RADAR_WINDOW_STRAT_Y = (SCREEN_HEIGHT - 107);
RADAR_WINDOW_TM_X = xResOffset + (xResSize - 97);
RADAR_WINDOW_SM_X = xResOffset + (xResSize - 97);
}
RADAR_WINDOW_SM_X = xResOffset + (xResSize - 97);

RADAR_WINDOW_TM_Y = (INTERFACE_START_Y + 13);
RADAR_WINDOW_SM_Y = ((UsingNewInventorySystem() == false)) ? (INV_INTERFACE_START_Y + 33) : (INV_INTERFACE_START_Y + 116);
Expand Down Expand Up @@ -436,8 +437,8 @@ void RenderRadarScreen( )

sWidth = ( RADAR_WINDOW_WIDTH );
sHeight = ( RADAR_WINDOW_HEIGHT );
sX = RADAR_WINDOW_TM_X;
sY = gsRadarY;
sX = gsRadarX;
sY = gsRadarY;


sRadarTLX = (INT16)( ( sTopLeftWorldX * gdScaleX ) - sRadarCX + sX + ( sWidth /2 ) );
Expand Down Expand Up @@ -602,7 +603,7 @@ void RenderRadarScreen( )
}

// Add starting relative to interface
sXSoldRadar += RADAR_WINDOW_TM_X;
sXSoldRadar += gsRadarX;
sYSoldRadar += gsRadarY;

if(gbPixelDepth==16)
Expand Down