Remove MINIAUTOMAP code

This commit is contained in:
MPC 2018-12-12 18:53:13 -03:00
parent 6b22dc183b
commit 649b6c9ca1
3 changed files with 4 additions and 32 deletions

View file

@ -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,7 +768,6 @@ static void AM_drawFline_soft(const fline_t *fl, INT32 color)
d = ay - ax/2;
for (;;)
{
if (CLIPDOT)
PUTDOT(x, y, color)
if (x == fl->b.x)
return;
@ -793,7 +785,6 @@ static void AM_drawFline_soft(const fline_t *fl, INT32 color)
d = ax - ay/2;
for (;;)
{
if (CLIPDOT)
PUTDOT(x, y, color)
if (y == fl->b.y)
return;
@ -807,7 +798,6 @@ static void AM_drawFline_soft(const fline_t *fl, INT32 color)
}
}
#undef CLIPDOT
#undef PUTDOT
}

View file

@ -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?

View file

@ -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();
}