mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user