move V_InitFlexTranTable() call to am_map.c

This commit is contained in:
Fabian Greffrath 2024-01-12 15:41:45 +01:00
parent 63124579ae
commit c6b87a9f44
2 changed files with 8 additions and 1 deletions

View File

@ -612,6 +612,8 @@ void AM_ResetScreenSize(void)
//
static void AM_LevelInit(void)
{
static int precalc_once;
automapfirststart = true;
f_x = f_y = 0;
@ -637,6 +639,12 @@ static void AM_LevelInit(void)
scale_mtof = min_scale_mtof;
scale_ftom = FixedDiv(FRACUNIT, scale_mtof);
if (!precalc_once)
{
precalc_once = 1;
V_InitFlexTranTable();
}
}
//

View File

@ -1020,7 +1020,6 @@ void R_InitData(void)
R_InitSpriteLumps();
R_InitTranMap(1); // killough 2/21/98, 3/6/98
R_InitColormaps(); // killough 3/20/98
V_InitFlexTranTable();
}
//