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:
@@ -1420,10 +1420,10 @@ void Graphics::drawmenu( int cr, int cg, int cb, bool levelmenu /*= false*/ )
|
||||
}
|
||||
}
|
||||
|
||||
char tempstring[Game::menutextbytes];
|
||||
char tempstring[MENU_TEXT_BYTES];
|
||||
SDL_strlcpy(tempstring, opt.text, sizeof(tempstring));
|
||||
|
||||
char buffer[Game::menutextbytes];
|
||||
char buffer[MENU_TEXT_BYTES];
|
||||
if ((int) i == game.currentmenuoption)
|
||||
{
|
||||
if (opt.active)
|
||||
|
||||
Reference in New Issue
Block a user