From b8216a91647d4ddd96e0fc2596662cb39586f7e4 Mon Sep 17 00:00:00 2001 From: elexis Date: Sat, 30 Dec 2017 14:02:09 +0000 Subject: [PATCH] Let Atlas provide a default AI seed. This addresses the Simulation2 warning about a gamesetup mechanism not having decided explicitly about the RNG. Differential Revision: https://code.wildfiregames.com/D1187 Reviewed By: mimo Refs #4917, 7e05d7edc9 / D1178 This was SVN commit r20726. --- source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp index d99a8d96d1..efd2c426ed 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp @@ -271,6 +271,9 @@ AtObj MapSettingsControl::UpdateSettingsObject() // teams locked m_MapSettings.setBool("LockTeams", wxDynamicCast(FindWindow(ID_MapTeams), wxCheckBox)->GetValue()); + // default AI RNG seed + m_MapSettings.setInt("AISeed", 0); + return m_MapSettings; }