mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-03 13:30:25 +07:00
randomise same-playercount team assignment (#9985)
This commit is contained in:
parent
252399a7d8
commit
e07a739ae2
@ -59,7 +59,7 @@ public class NetServer implements ApplicationListener{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
return count;
|
||||
return (float)count + Mathf.random(-0.1f, 0.1f); //if several have the same playercount pick random
|
||||
});
|
||||
return re == null ? null : re.team;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user