mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Change all game-gamestates to use an enum type
Currently, all game-gamestate variables are just ints. This is not particularly type-safe, in case the number of enums changes. To verify that all current uses of the game-gamestate variables actually use the enums, change them to be typed with the enum instead. (As an aside, we should probably rename this so that it can't be confused with Terry's state machine that has several different ways to exploit to warp you to the credits, but that's something to do later.)
This commit is contained in:
@@ -6877,7 +6877,7 @@ void Game::unlockAchievement(const char *name) {
|
||||
#endif
|
||||
}
|
||||
|
||||
void Game::mapmenuchange(const int newgamestate, const bool user_initiated)
|
||||
void Game::mapmenuchange(const enum GameGamestate newgamestate, const bool user_initiated)
|
||||
{
|
||||
if (user_initiated && graphics.resumegamemode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user