Change gamestate ints to their enum names

This is to make it easier to read, so I don't have to reference Enums.h
if I want to know what they are referring to.
This commit is contained in:
Misa
2020-04-16 20:15:53 -07:00
committed by Ethan Lee
parent 637a9d5665
commit 4d9c834a13
5 changed files with 11 additions and 11 deletions

View File

@@ -1332,7 +1332,7 @@ void Game::updatestate()
if(graphics.fademode == 1) state++;
break;
case 81:
gamestate = 1;
gamestate = TITLEMODE;
graphics.fademode = 4;
music.play(6);
graphics.backgrounddrawn = false;
@@ -1389,7 +1389,7 @@ void Game::updatestate()
break;
case 84:
graphics.flipmode = false;
gamestate = 1;
gamestate = TITLEMODE;
graphics.fademode = 4;
graphics.backgrounddrawn = true;
map.tdrawback = true;
@@ -1469,7 +1469,7 @@ void Game::updatestate()
if(graphics.fademode == 1) state++;
break;
case 97:
gamestate = 0;
gamestate = GAMEMODE;
graphics.fademode = 4;
startscript = true;
newscript="returntolab";
@@ -3049,7 +3049,7 @@ void Game::updatestate()
break;
case 3101:
graphics.flipmode = false;
gamestate = 1;
gamestate = TITLEMODE;
graphics.fademode = 4;
graphics.backgrounddrawn = true;
map.tdrawback = true;
@@ -3376,7 +3376,7 @@ void Game::updatestate()
break;
case 3522:
graphics.flipmode = false;
gamestate = 1;
gamestate = TITLEMODE;
graphics.fademode = 4;
graphics.backgrounddrawn = true;
map.tdrawback = true;