aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-26 23:30:02 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-26 23:30:02 +0000
commit21cd8a0e32cda8d5b868ebbeb2105af4d31afb86 (patch)
treed531ef1dccf2561a524c96662775b0a86ba84c49 /Northstar.CustomServers/mod
parent5a1e4e60513b4a804ca343080b3d2c752a4b2a4d (diff)
downloadNorthstarMods-21cd8a0e32cda8d5b868ebbeb2105af4d31afb86.tar.gz
NorthstarMods-21cd8a0e32cda8d5b868ebbeb2105af4d31afb86.zip
fix automatic map rotation not returning after map change
Diffstat (limited to 'Northstar.CustomServers/mod')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_changemap.nut3
1 files changed, 3 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_changemap.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_changemap.nut
index 470fa6a4..16a3ce92 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_changemap.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_changemap.nut
@@ -34,7 +34,10 @@ void function CodeCallback_MatchIsOver()
for ( int j = 0; j < GetCurrentPlaylistGamemodeByIndexMapsCount( i ); j++ )
{
if ( changeOnNextIteration )
+ {
GameRules_ChangeMap( GetCurrentPlaylistGamemodeByIndexMapByIndex( i, j ), GetCurrentPlaylistGamemodeByIndex( i ) )
+ return
+ }
if ( GetCurrentPlaylistGamemodeByIndexMapByIndex( i, j ) == GetMapName() )
changeOnNextIteration = true // change to next map/mode we iterate over