1
1
forked from 0ad/0ad

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.
This commit is contained in:
elexis 2017-12-30 14:02:09 +00:00
parent 4055c564e9
commit b8216a9164

View File

@ -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;
}