generate random numbers as floats

as they get converted from double before use anyway
This commit is contained in:
Matthias Mailänder
2013-03-01 10:53:41 +01:00
parent 793dfa5748
commit 47075e1cd0
5 changed files with 5 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ namespace OpenRA.Mods.RA
void SpawnCrate(Actor self)
{
var inWater = self.World.SharedRandom.NextDouble() < Info.WaterChance;
var inWater = self.World.SharedRandom.NextFloat() < Info.WaterChance;
var pp = ChooseDropCell(self, inWater, 100);
if (pp == null) return;