1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Fix NO_CUSTOM_LEVELS compile after #158

ifdef out the code that draws the "return to editor" text in
NO_CUSTOM_LEVELS builds now that it accesses variables in the
editor class (PR #158)
This commit is contained in:
Matt Penny 2020-02-10 23:52:08 -05:00 committed by Ethan Lee
parent 9b125ad8df
commit 9adcbaed6c

View file

@ -1604,6 +1604,7 @@ void gamerender(Graphics& dwgfx, mapclass& map, Game& game, entityclass& obj, Ut
}
}
#if !defined(NO_CUSTOM_LEVELS)
if(map.custommode && !map.custommodeforreal && !game.advancetext){
//Return to level editor
dwgfx.bprintalpha(5, 5, "[Press ENTER to return to editor]", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), ed.returneditoralpha, false);
@ -1611,6 +1612,7 @@ void gamerender(Graphics& dwgfx, mapclass& map, Game& game, entityclass& obj, Ut
ed.returneditoralpha -= 15;
}
}
#endif
dwgfx.cutscenebars();