move CosmeticRandom to game
This commit is contained in:
@@ -67,7 +67,7 @@ namespace OpenRA.GameRules
|
||||
if (liveclips.Count == 0)
|
||||
return null; /* avoid crashing if there's no clips at all */
|
||||
|
||||
var i = Game.world.CosmeticRandom.Next(liveclips.Count);
|
||||
var i = Game.CosmeticRandom.Next(liveclips.Count);
|
||||
var s = liveclips[i];
|
||||
liveclips.RemoveAt(i);
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user