1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-12 16:18:00 -05:00

Grief: random map rotation can pick current map initially

This commit is contained in:
Jbleezy
2021-12-30 16:39:16 -08:00
parent 919b7c27eb
commit 1c87a713c8

View File

@ -1747,11 +1747,15 @@ random_map_rotation()
} }
// make sure current map isn't first // make sure current map isn't first
if(level.scr_zm_map_start_location == rotation_data.location[0] && level.script == rotation_data.mapname[0]) // except for initially since map hasn't been played
if(!initial_map)
{ {
num = randomIntRange(1, rotation_data.location.size); if(level.scr_zm_map_start_location == rotation_data.location[0] && level.script == rotation_data.mapname[0])
rotation_data.location = array_swap(rotation_data.location, 0, num); {
rotation_data.mapname = array_swap(rotation_data.mapname, 0, num); num = randomIntRange(1, rotation_data.location.size);
rotation_data.location = array_swap(rotation_data.location, 0, num);
rotation_data.mapname = array_swap(rotation_data.mapname, 0, num);
}
} }
rotation_string = ""; rotation_string = "";