Hi, as already written in the title, the game crashes at the end of the game.
This only happens in Free For All mode.
I attach a couple of screens to help you understand the problem:
Best regards
the Game freeze at the end of the game (Free For All BUG)
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
Hi,
Please try the following:
in bl_AIManager.cs, replace the function GetBotWithMoreKills()
with this:
Let me know if that fixes the issue for you.
Please try the following:
in bl_AIManager.cs, replace the function GetBotWithMoreKills()
with this:
Code: Select all
public BotsStats GetBotWithMoreKills()
{
if(BotsStatistics == null || BotsStatistics.Count <= 0)
{
BotsStats bs = new BotsStats()
{
Name = "None",
Kills = 0,
Team = Team.None,
Score = 0,
};
return bs;
}
int high = 0;
int id = 0;
for (int i = 0; i < BotsStatistics.Count; i++)
{
if (BotsStatistics[i].Kills > high)
{
high = BotsStatistics[i].Kills;
id = i;
}
}
return BotsStatistics[id];
}