mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 06:19:25 +03:00
Add statedelay argument to gamestate command
The `gamestate` command has an argument to set the gamestate, but the statedelay was always set to 0, despite the statedelay being an important part of the gamestate system. This commit adds an optional argument to set the statedelay.
This commit is contained in:
1 parent
deeed00c95
commit
9bcade9776
1 file changed
+8
-1
@@ -1346,7 +1346,14 @@ void scriptclass::run(void)
|
||||
{
|
||||
// Allow the gamestate command to bypass statelock, at least for now
|
||||
game.state = ss_toi(words[1]);
|
||||
game.statedelay = 0;
|
||||
if (argexists[2])
|
||||
{
|
||||
game.statedelay = ss_toi(words[2]);
|
||||
}
|
||||
else
|
||||
{
|
||||
game.statedelay = 0;
|
||||
}
|
||||
}
|
||||
else if (words[0] == "textboxactive")
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user