update automap while playing

This commit is contained in:
Fabian Greffrath 2020-03-29 14:00:50 +02:00
parent c42c0dae99
commit 1486a7e310
3 changed files with 12 additions and 0 deletions

View File

@ -230,7 +230,11 @@ void D_Display (void)
if (!gametic)
break;
if (automapactive)
{
// [FG] update automap while playing
R_RenderPlayerView (&players[displayplayer]);
AM_Drawer();
}
if (wipe || (scaledviewheight != 200 && fullscreen) // killough 11/98
|| (inhelpscreensstate && !inhelpscreens))
redrawsbar = true; // just put away the help screen

View File

@ -621,6 +621,10 @@ void R_RenderPlayerView (player_t* player)
// The head node is the last node output.
R_RenderBSPNode (numnodes-1);
// [FG] update automap while playing
if (automapactive)
return;
// Check for new console commands.
NetUpdate ();

View File

@ -395,6 +395,10 @@ void R_StoreWallRange(const int start, const int stop)
// mark the segment as visible for auto map
linedef->flags |= ML_MAPPED;
// [FG] update automap while playing
if (automapactive)
return;
// calculate rw_distance for scale calculation
rw_normalangle = curline->r_angle + ANG90; // [FG] use re-calculated seg angles