moved randoms onto World (reqd for side-by-side worlds, also fixes some obscure desyncs)

This commit is contained in:
Chris Forbes
2010-02-13 21:06:02 +13:00
parent c026796c04
commit 641c21107e
9 changed files with 17 additions and 17 deletions

View File

@@ -16,6 +16,9 @@ namespace OpenRa
List<IEffect> effects = new List<IEffect>();
List<Action<World>> frameEndActions = new List<Action<World>>();
public Random SharedRandom = new Random(0); // synced
public Random CosmeticRandom = new Random(); // not synced
public readonly Dictionary<int, Player> players = new Dictionary<int, Player>();
int localPlayerIndex;