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

@@ -1266,7 +1266,7 @@ void scriptclass::run()
if (words[1] == "teleporter")
{
//TODO this draw the teleporter screen. This is a problem. :(
game.gamestate = 5;
game.gamestate = TELEPORTERMODE;
graphics.menuoffset = 240; //actually this should count the roomname
if (map.extrarow) graphics.menuoffset -= 10;
@@ -1502,7 +1502,7 @@ void scriptclass::run()
}
else if (words[0] == "rollcredits")
{
game.gamestate = 6;
game.gamestate = GAMECOMPLETE;
graphics.fademode = 4;
game.creditposition = 0;
}