mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 03:52:12 -04:00
move V_InitFlexTranTable() call to am_map.c
This commit is contained in:
parent
63124579ae
commit
c6b87a9f44
@ -612,6 +612,8 @@ void AM_ResetScreenSize(void)
|
|||||||
//
|
//
|
||||||
static void AM_LevelInit(void)
|
static void AM_LevelInit(void)
|
||||||
{
|
{
|
||||||
|
static int precalc_once;
|
||||||
|
|
||||||
automapfirststart = true;
|
automapfirststart = true;
|
||||||
|
|
||||||
f_x = f_y = 0;
|
f_x = f_y = 0;
|
||||||
@ -637,6 +639,12 @@ static void AM_LevelInit(void)
|
|||||||
scale_mtof = min_scale_mtof;
|
scale_mtof = min_scale_mtof;
|
||||||
|
|
||||||
scale_ftom = FixedDiv(FRACUNIT, scale_mtof);
|
scale_ftom = FixedDiv(FRACUNIT, scale_mtof);
|
||||||
|
|
||||||
|
if (!precalc_once)
|
||||||
|
{
|
||||||
|
precalc_once = 1;
|
||||||
|
V_InitFlexTranTable();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -1020,7 +1020,6 @@ void R_InitData(void)
|
|||||||
R_InitSpriteLumps();
|
R_InitSpriteLumps();
|
||||||
R_InitTranMap(1); // killough 2/21/98, 3/6/98
|
R_InitTranMap(1); // killough 2/21/98, 3/6/98
|
||||||
R_InitColormaps(); // killough 3/20/98
|
R_InitColormaps(); // killough 3/20/98
|
||||||
V_InitFlexTranTable();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user