diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-26 23:30:02 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-26 23:30:02 +0000 |
commit | 21cd8a0e32cda8d5b868ebbeb2105af4d31afb86 (patch) | |
tree | d531ef1dccf2561a524c96662775b0a86ba84c49 /Northstar.CustomServers/mod/scripts/vscripts/mp | |
parent | 5a1e4e60513b4a804ca343080b3d2c752a4b2a4d (diff) | |
download | NorthstarMods-21cd8a0e32cda8d5b868ebbeb2105af4d31afb86.tar.gz NorthstarMods-21cd8a0e32cda8d5b868ebbeb2105af4d31afb86.zip |
fix automatic map rotation not returning after map change
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_changemap.nut | 3 |
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 |