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

Remove level menu rendering code in NO_CUSTOM_LEVELS builds

Should have been done earlier, imo. But now that we introduce `ed` the
NO_CUSTOM_LEVEL build fails because of it. So just ifdef it out
entirely.
This commit is contained in:
Misa 2021-08-18 09:26:14 -07:00
parent 9b3ae770fb
commit b60bfc6bd8

View file

@ -1593,6 +1593,7 @@ void Graphics::drawmenu( int cr, int cg, int cb, bool levelmenu /*= false*/ )
int x = i*game.menuspacing + game.menuxoff; int x = i*game.menuspacing + game.menuxoff;
int y = 140 + i*12 + game.menuyoff; int y = 140 + i*12 + game.menuyoff;
#ifndef NO_CUSTOM_LEVELS
if (levelmenu) if (levelmenu)
{ {
size_t separator; size_t separator;
@ -1615,6 +1616,7 @@ void Graphics::drawmenu( int cr, int cg, int cb, bool levelmenu /*= false*/ )
y += 4; y += 4;
} }
} }
#endif
char tempstring[MENU_TEXT_BYTES]; char tempstring[MENU_TEXT_BYTES];
SDL_strlcpy(tempstring, opt.text, sizeof(tempstring)); SDL_strlcpy(tempstring, opt.text, sizeof(tempstring));