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

Move line drawer setting to AM_Drawer

parent 9d9c685d
Branches
No related tags found
1 merge request!735Automap fixes
...@@ -354,12 +354,6 @@ static void AM_LevelInit(void) ...@@ -354,12 +354,6 @@ static void AM_LevelInit(void)
f_w = vid.width; f_w = vid.width;
f_h = vid.height; f_h = vid.height;
AM_drawFline = AM_drawFline_soft;
#ifdef HWRENDER
if (rendermode == render_opengl)
AM_drawFline = HWR_drawAMline;
#endif
AM_findMinMaxBoundaries(); AM_findMinMaxBoundaries();
scale_mtof = FixedDiv(min_scale_mtof*10, 7*FRACUNIT); scale_mtof = FixedDiv(min_scale_mtof*10, 7*FRACUNIT);
if (scale_mtof > max_scale_mtof) if (scale_mtof > max_scale_mtof)
...@@ -1100,6 +1094,12 @@ void AM_Drawer(void) ...@@ -1100,6 +1094,12 @@ void AM_Drawer(void)
if (!automapactive) if (!automapactive)
return; return;
AM_drawFline = AM_drawFline_soft;
#ifdef HWRENDER
if (rendermode == render_opengl)
AM_drawFline = HWR_drawAMline;
#endif
AM_clearFB(BACKGROUND); AM_clearFB(BACKGROUND);
if (draw_grid) AM_drawGrid(GRIDCOLORS); if (draw_grid) AM_drawGrid(GRIDCOLORS);
AM_drawWalls(); AM_drawWalls();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment