Put screen effects render handling inside a function

This de-duplicates the screen effects rendering code by putting it
inside a function, Graphics::renderwithscreeneffects(), and using that
instead of copy-pasted code.
This commit is contained in:
Misa
2020-04-26 19:24:50 -07:00
committed by Ethan Lee
parent 0e082551b1
commit 857937326e
5 changed files with 26 additions and 104 deletions

View File

@@ -3422,19 +3422,7 @@ void editorrender()
graphics.drawfade();
if (game.flashlight > 0 && !game.noflashingmode)
{
graphics.flashlight();
}
if (game.screenshake > 0 && !game.noflashingmode)
{
graphics.screenshake();
}
else
{
graphics.render();
}
graphics.renderwithscreeneffects();
}
void editorlogic()