mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Apply suggestions from code review
Co-authored-by: Misa Elizabeth Kai <infoteddy@infoteddy.info>
This commit is contained in:
parent
86604c5748
commit
e4d02feffa
2 changed files with 6 additions and 5 deletions
|
@ -717,7 +717,7 @@ void Game::savetele_textbox(void)
|
|||
}
|
||||
}
|
||||
|
||||
void Game::setstate(int gamestate)
|
||||
void Game::setstate(const int gamestate)
|
||||
{
|
||||
if (!statelocked)
|
||||
{
|
||||
|
@ -725,7 +725,7 @@ void Game::setstate(int gamestate)
|
|||
}
|
||||
}
|
||||
|
||||
void Game::setstate(int gamestate, int delay)
|
||||
void Game::setstate(const int gamestate, const int delay)
|
||||
{
|
||||
if (!statelocked)
|
||||
{
|
||||
|
@ -742,7 +742,7 @@ void Game::incstate()
|
|||
}
|
||||
}
|
||||
|
||||
void Game::setstatedelay(int delay)
|
||||
void Game::setstatedelay(const int delay)
|
||||
{
|
||||
if (!statelocked)
|
||||
{
|
||||
|
@ -763,7 +763,8 @@ void Game::unlockstate()
|
|||
void Game::updatestate(void)
|
||||
{
|
||||
statedelay--;
|
||||
if(statedelay <= 0){
|
||||
if (statedelay <= 0)
|
||||
{
|
||||
statedelay = 0;
|
||||
glitchrunkludge=false;
|
||||
}
|
||||
|
|
|
@ -1117,7 +1117,7 @@ void scriptclass::run(void)
|
|||
}
|
||||
else if (words[0] == "gamestate")
|
||||
{
|
||||
// Allow the gamestate command bypass statelock, at least for now
|
||||
// Allow the gamestate command to bypass statelock, at least for now
|
||||
game.state = ss_toi(words[1]);
|
||||
game.statedelay = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue