From 0d2d17d2fb2ceb24e2976e5895974376d5426601 Mon Sep 17 00:00:00 2001 From: Zimmermann Gyula Date: Wed, 10 May 2017 23:05:57 +0200 Subject: [PATCH] Fix the AI acting the same at game restart. --- OpenRA.Mods.Common/AI/HackyAI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/AI/HackyAI.cs b/OpenRA.Mods.Common/AI/HackyAI.cs index a4b775dad5..105ae23f62 100644 --- a/OpenRA.Mods.Common/AI/HackyAI.cs +++ b/OpenRA.Mods.Common/AI/HackyAI.cs @@ -342,7 +342,7 @@ namespace OpenRA.Mods.Common.AI foreach (var defense in Info.DefenseQueues) builders.Add(new BaseBuilder(this, defense, p, playerPower, playerResource)); - Random = new MersenneTwister((int)p.PlayerActor.ActorID); + Random = new MersenneTwister(Game.CosmeticRandom.Next()); // Avoid all AIs trying to rush in the same tick, randomize their initial rush a little. var smallFractionOfRushInterval = Info.RushInterval / 20;