Skip to content
Snippets Groups Projects
Commit 649b6c9c authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Remove MINIAUTOMAP code

parent 6b22dc18
No related branches found
No related tags found
1 merge request!488Merge in next and don't billboard papersprites in GL
......@@ -365,12 +365,6 @@ static void AM_LevelInit(void)
f_w = vid.width;
f_h = vid.height;
// Jimita
#ifdef MINIAUTOMAP
f_x = f_w / 2;
f_y = f_h / 2;
#endif
AM_drawFline = AM_drawFline_soft;
#ifdef HWRENDER
if (rendermode == render_opengl)
......@@ -757,7 +751,6 @@ static void AM_drawFline_soft(const fline_t *fl, INT32 color)
#endif
#define PUTDOT(xx,yy,cc) V_DrawFill(xx,yy,1,1,cc|V_NOSCALESTART);
#define CLIPDOT (x >= f_x && y >= f_y && x < f_x + f_w && y < f_y + f_h)
dx = fl->b.x - fl->a.x;
ax = 2 * (dx < 0 ? -dx : dx);
......@@ -775,8 +768,7 @@ static void AM_drawFline_soft(const fline_t *fl, INT32 color)
d = ay - ax/2;
for (;;)
{
if (CLIPDOT)
PUTDOT(x, y, color)
PUTDOT(x, y, color)
if (x == fl->b.x)
return;
if (d >= 0)
......@@ -793,8 +785,7 @@ static void AM_drawFline_soft(const fline_t *fl, INT32 color)
d = ax - ay/2;
for (;;)
{
if (CLIPDOT)
PUTDOT(x, y, color)
PUTDOT(x, y, color)
if (y == fl->b.y)
return;
if (d >= 0)
......@@ -807,7 +798,6 @@ static void AM_drawFline_soft(const fline_t *fl, INT32 color)
}
}
#undef CLIPDOT
#undef PUTDOT
}
......
......@@ -31,9 +31,6 @@ typedef struct
#define AM_MSGENTERED (AM_MSGHEADER | ('e'<<8))
#define AM_MSGEXITED (AM_MSGHEADER | ('x'<<8))
// Jimita
//#define MINIAUTOMAP
extern boolean am_recalc; // true if screen size changes
extern boolean automapactive; // In AutoMap mode?
......
......@@ -319,6 +319,7 @@ static void D_Display(void)
if (!gametic)
break;
HU_Erase();
AM_Drawer();
break;
case GS_INTERMISSION:
......@@ -375,19 +376,7 @@ static void D_Display(void)
if (gamestate == GS_LEVEL)
{
// draw the view directly
boolean dorenderview = cv_renderview.value;
boolean dorenderautomap = false;
// Jimita
if (automapactive)
{
dorenderautomap = true;
#ifndef MINIAUTOMAP
dorenderview = false;
#endif
}
if (dorenderview)
if (cv_renderview.value && !automapactive)
{
if (players[displayplayer].mo || players[displayplayer].playerstate == PST_DEAD)
{
......@@ -444,10 +433,6 @@ static void D_Display(void)
lastdraw = false;
}
// Jimita
if (dorenderautomap)
AM_Drawer();
ST_Drawer();
HU_Drawer();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment