mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
De-duplicate number of menu text bytes
I've moved this to a define that gets declared in Game.h. I could've made it a const int, but that's only legal in C++ mode.
This commit is contained in:
@@ -6327,7 +6327,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
||||
static const char tmp[] = " ";
|
||||
prefix = tmp;
|
||||
}
|
||||
char text[menutextbytes];
|
||||
char text[MENU_TEXT_BYTES];
|
||||
SDL_snprintf(text, sizeof(text), "%s%s", prefix, ed.ListOfMetaData[i].title.c_str());
|
||||
for (size_t ii = 0; text[ii] != '\0'; ++ii)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user