Browse Source

some automap

pull/876/head
qndel 7 years ago committed by Anders Jenbo
parent
commit
7540cad2b3
  1. 24
      Source/automap.cpp
  2. 4
      Source/automap.h

24
Source/automap.cpp

@ -254,6 +254,10 @@ void DrawAutomap()
sy += AutoMapXPos;
}
DrawAutomapPlr();
#ifdef HELLFIRE
if (AutoMapShowItems)
SearchAutomapItem();
#endif
DrawAutomapGame();
}
@ -441,6 +445,26 @@ void DrawAutomapType(int sx, int sy, WORD automap_type)
DrawLine(sx, sy + AutoMapYPos, sx + AutoMapXPos, sy, COLOR_DIM);
}
}
#ifdef HELLFIRE
void SearchAutomapItem(){
}
void DrawAutomapItem(int x, int y, char color)
{
int x1, y1, x2, y2;
x1 = x - AutoMapXPos / 2;
y1 = y - AutoMapYPos / 2;
x2 = AutoMapPosBits / 2 + x1;
y2 = y1 + AutoMapXPos / 2;
DrawLine(x, y1, x1, y, color);
DrawLine(x, y1, x2, y, color);
DrawLine(x, y2, x1, y, color);
DrawLine(x, y2, x2, y, color);
}
#endif
void DrawAutomapPlr()
{

4
Source/automap.h

@ -26,6 +26,10 @@ void AutomapZoomIn();
void AutomapZoomOut();
void DrawAutomap();
void DrawAutomapType(int screen_x, int screen_y, WORD automap_type);
#ifdef HELLFIRE
void SearchAutomapItem();
void DrawAutomapItem(int x, int y, char color);
#endif
void DrawAutomapPlr();
WORD GetAutomapType(int x, int y, BOOL view);
void DrawAutomapGame();

Loading…
Cancel
Save