diff --git a/data/base/images/intfac.img b/data/base/images/intfac.img index 9c476450d..4af3186c6 100644 --- a/data/base/images/intfac.img +++ b/data/base/images/intfac.img @@ -507,3 +507,4 @@ 5,74,29,37,29,-5,1,"IMAGE EDIT RESEARCH DOWN" 5,37,0,37,29,-5,1,"IMAGE EDIT MANUFACTURE UP" 5,37,29,37,29,-5,1,"IMAGE EDIT MANUFACTURE DOWN" +5,0,84,14,33,0,0,"RADAR_NORTH" diff --git a/data/base/images/intfac5.png b/data/base/images/intfac5.png index b0dd5d7a5..6f83115d3 100644 Binary files a/data/base/images/intfac5.png and b/data/base/images/intfac5.png differ diff --git a/src/intfac.h b/src/intfac.h index 4eb1e7ddc..cdf4c5470 100644 --- a/src/intfac.h +++ b/src/intfac.h @@ -533,8 +533,8 @@ enum { IMAGE_EDIT_RESEARCH_UP, IMAGE_EDIT_RESEARCH_DOWN, IMAGE_EDIT_MANUFACTURE_UP, - IMAGE_EDIT_MANUFACTURE_DOWN - + IMAGE_EDIT_MANUFACTURE_DOWN, + RADAR_NORTH }; #endif // __INCLUDED_SRC_INTFAC_H__ diff --git a/src/radar.c b/src/radar.c index 058a1b4e8..63d4a7a0c 100644 --- a/src/radar.c +++ b/src/radar.c @@ -89,6 +89,7 @@ static UDWORD radarBufferSize = 0; static void DrawRadarTiles(void); static void DrawRadarObjects(void); static void DrawRadarExtras(float radarX, float radarY, float pixSizeH, float pixSizeV); +static void DrawNorth(void); static void radarSize(float zoom) { @@ -267,6 +268,7 @@ void drawRadar(void) { // rotate the map iV_MatrixRotateZ(player.r.y); + DrawNorth(); } // draw the box at the dimensions of the map iV_TransBoxFill(-radarWidth/2.0, @@ -284,6 +286,10 @@ void drawRadar(void) drawRadarBlips(-radarWidth/2.0, -radarHeight/2.0, pixSizeH, pixSizeV); pie_MatEnd(); } +static void DrawNorth(void) +{ + iV_DrawImage(IntImages, RADAR_NORTH, -((radarWidth / 2.0) + (IntImages->ImageDefs[RADAR_NORTH].Width) + 1) , -(radarHeight / 2.0)); +} static PIELIGHT appliedRadarColour(RADAR_DRAW_MODE radarDrawMode, MAPTILE *WTile) {