1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-22 13:10:28 -05:00

Containment: don't move zones if only one zone

This commit is contained in:
Jbleezy
2023-03-14 18:29:30 -07:00
parent 33d67b3163
commit 46ee007107

View File

@ -2547,16 +2547,20 @@ containment_think()
flag_wait("initial_blackscreen_passed");
ind = 0;
containment_zones = containment_get_zones();
level.containment_zone_hud.alpha = 1;
level.containment_time_hud.alpha = 1;
if (containment_zones.size > 1)
{
level.containment_time_hud.alpha = 1;
}
level waittill("restart_round_start");
wait 10;
containment_zones = containment_get_zones();
ind = 0;
while(1)
{
zone_name = containment_zones[ind];
@ -2587,7 +2591,7 @@ containment_think()
held_time["allies"] = undefined;
held_prev = "none";
start_time = getTime();
while((getTime() - start_time) <= (60 * 1000))
while((getTime() - start_time) <= 60000 || containment_zones.size == 1)
{
players = get_players();
in_containment_zone = [];