always initialize tranmap (#511)

* always initialize tranmap

* tranmap init is not needed for cheat
This commit is contained in:
Roman Fomin 2022-04-13 13:30:10 +07:00 committed by GitHub
parent e4bbd2b98d
commit d95f990fc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 6 deletions

View File

@ -616,10 +616,6 @@ static void cheat_tran()
plyr->message = // Ty 03/27/98 - *not* externalized
(general_translucency = !general_translucency) ? "Translucency enabled" :
"Translucency disabled";
// killough 3/1/98, 4/11/98: cache translucency map on a demand basis
if (general_translucency && !main_tranmap)
R_InitTranMap(0);
}
static void cheat_massacre() // jff 2/01/98 kill all monsters

View File

@ -3761,7 +3761,6 @@ setup_menu_t gen_settings2[] = { // General Settings screen2
void M_Trans(void) // To reset translucency after setting it in menu
{
if (general_translucency)
R_InitTranMap(0);
}

View File

@ -990,7 +990,6 @@ void R_InitData(void)
R_InitTextures();
R_InitFlats();
R_InitSpriteLumps();
if (general_translucency) // killough 3/1/98, 10/98
R_InitTranMap(1); // killough 2/21/98, 3/6/98
R_InitColormaps(); // killough 3/20/98
}