mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-21 08:51:10 +00:00
Merge branch 'allow-lua-to-override-special-stages' into 'next'
Allows Lua to transport you to a different map in place of a Special Stage. See merge request STJr/SRB2!1368
This commit is contained in:
commit
2df75610e6
1 changed files with 7 additions and 6 deletions
13
src/g_game.c
13
src/g_game.c
|
@ -3928,12 +3928,13 @@ static void G_DoCompleted(void)
|
|||
{
|
||||
token--;
|
||||
|
||||
for (i = 0; i < 7; i++)
|
||||
if (!(emeralds & (1<<i)))
|
||||
{
|
||||
nextmap = ((netgame || multiplayer) ? smpstage_start : sstage_start) + i - 1; // to special stage!
|
||||
break;
|
||||
}
|
||||
if (!nextmapoverride)
|
||||
for (i = 0; i < 7; i++)
|
||||
if (!(emeralds & (1<<i)))
|
||||
{
|
||||
nextmap = ((netgame || multiplayer) ? smpstage_start : sstage_start) + i - 1; // to special stage!
|
||||
break;
|
||||
}
|
||||
|
||||
if (i == 7)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue