move CosmeticRandom to game

This commit is contained in:
Bob
2010-04-13 22:00:32 +12:00
committed by Chris Forbes
parent 9b0ce4ff62
commit c3f1ec9ed2
4 changed files with 7 additions and 4 deletions

View File

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