moved randoms onto World (reqd for side-by-side worlds, also fixes some obscure desyncs)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user