@@ -1257,7 +1257,7 @@ Displacement GetAutomapScreen()
12571257{
12581258 Displacement screen = {};
12591259
1260- if (GetAutomapType () == AutomapType::Minimap ) {
1260+ if (IsMinimapAutomapType () ) {
12611261 screen = {
12621262 MinimapRect.position .x + MinimapRect.size .width / 2 ,
12631263 MinimapRect.position .y + MinimapRect.size .height / 2
@@ -1291,7 +1291,7 @@ void SearchAutomapItem(const Surface &out, const Displacement &myPlayerOffset, i
12911291 const int endY = std::clamp (tile.y + searchRadius, 0 , MAXDUNY);
12921292
12931293 const AutomapType mapType = GetAutomapType ();
1294- const int scale = (mapType == AutomapType::Minimap ) ? MinimapScale : AutoMapScale;
1294+ const int scale = IsMinimapAutomapType (mapType) ? MinimapScale : AutoMapScale;
12951295
12961296 for (int i = startX; i < endX; i++) {
12971297 for (int j = startY; j < endY; j++) {
@@ -1308,7 +1308,7 @@ void SearchAutomapItem(const Surface &out, const Displacement &myPlayerOffset, i
13081308
13091309 screen += GetAutomapScreen ();
13101310
1311- if (mapType != AutomapType::Minimap && CanPanelsCoverView ()) {
1311+ if (! IsMinimapAutomapType (mapType) && CanPanelsCoverView ()) {
13121312 if (IsRightPanelOpen ())
13131313 screen.x -= gnScreenWidth / 4 ;
13141314 if (IsLeftPanelOpen ())
@@ -1352,7 +1352,7 @@ void DrawAutomapPlr(const Surface &out, const Displacement &myPlayerOffset, cons
13521352 if (player.isWalking ())
13531353 playerOffset = GetOffsetForWalking (player.AnimInfo , player._pdir );
13541354
1355- const int scale = ( GetAutomapType () == AutomapType::Minimap ) ? MinimapScale : AutoMapScale;
1355+ const int scale = IsMinimapAutomapType ( ) ? MinimapScale : AutoMapScale;
13561356
13571357 Point base = {
13581358 ((playerOffset.deltaX + myPlayerOffset.deltaX ) * scale / 100 / 2 ) + (px - py) * AmLine (AmLineLength::DoubleTile),
@@ -1732,7 +1732,7 @@ void AutomapRight()
17321732
17331733void AutomapZoomIn ()
17341734{
1735- int &scale = ( GetAutomapType () == AutomapType::Minimap ) ? MinimapScale : AutoMapScale;
1735+ int &scale = IsMinimapAutomapType ( ) ? MinimapScale : AutoMapScale;
17361736
17371737 if (scale >= 200 )
17381738 return ;
@@ -1742,7 +1742,7 @@ void AutomapZoomIn()
17421742
17431743void AutomapZoomOut ()
17441744{
1745- int &scale = ( GetAutomapType () == AutomapType::Minimap ) ? MinimapScale : AutoMapScale;
1745+ int &scale = IsMinimapAutomapType ( ) ? MinimapScale : AutoMapScale;
17461746
17471747 if (scale <= 25 )
17481748 return ;
@@ -1773,7 +1773,7 @@ void DrawAutomap(const Surface &out)
17731773 if (myPlayer.isWalking ())
17741774 myPlayerOffset = GetOffsetForWalking (myPlayer.AnimInfo , myPlayer._pdir , true );
17751775
1776- const int scale = ( GetAutomapType () == AutomapType::Minimap ) ? MinimapScale : AutoMapScale;
1776+ const int scale = IsMinimapAutomapType ( ) ? MinimapScale : AutoMapScale;
17771777 const int d = (scale * 64 ) / 100 ;
17781778 int cells = 2 * (gnScreenWidth / 2 / d) + 1 ;
17791779 if (((gnScreenWidth / 2 ) % d) != 0 )
@@ -1801,6 +1801,12 @@ void DrawAutomap(const Surface &out)
18011801 DrawVerticalLine (out, MinimapRect.position + Displacement { -2 , -1 }, MinimapRect.size .height + 1 , MapColorsDim);
18021802 DrawVerticalLine (out, MinimapRect.position + Displacement { MinimapRect.size .width , -1 }, MinimapRect.size .height + 1 , MapColorsDim);
18031803
1804+ if (AutoMapShowItems)
1805+ SearchAutomapItem (out, myPlayerOffset, 8 , [](Point position) {
1806+ return dItem[position.x ][position.y ] != 0 ;
1807+ });
1808+ } else if (GetAutomapType () == AutomapType::MinimapBorderless) {
1809+
18041810 if (AutoMapShowItems)
18051811 SearchAutomapItem (out, myPlayerOffset, 8 , [](Point position) {
18061812 return dItem[position.x ][position.y ] != 0 ;
0 commit comments