- r_vanillatrans: Cache the cache! Transform the function into a global variable and recheck at the start of D_Display
This commit is contained in:
parent
5eaf085d58
commit
c18134dbd3
6 changed files with 8 additions and 4 deletions
|
|
@ -670,6 +670,8 @@ void D_Display ()
|
|||
cycles.Reset();
|
||||
cycles.Clock();
|
||||
|
||||
r_UseVanillaTransparency = UseVanillaTransparency(); // [SP] Cache UseVanillaTransparency() call
|
||||
|
||||
if (players[consoleplayer].camera == NULL)
|
||||
{
|
||||
players[consoleplayer].camera = players[consoleplayer].mo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue