Refactor RandomDelay:
Allow different types of random and reflect other use cases by renaming.
This commit is contained in:
committed by
abcdefg30
parent
3a7aeb5324
commit
a2a668077c
@@ -93,7 +93,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (spawnPoint == null)
|
||||
return;
|
||||
|
||||
spawnCountdown = Util.RandomDelay(self.World, info.SpawnInterval);
|
||||
spawnCountdown = Util.RandomInRange(self.World.SharedRandom, info.SpawnInterval);
|
||||
|
||||
do
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user