From 8325389d9fbaed3aea3578abc336dd8cefc7a83a Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 12 Nov 2009 11:48:02 +1300 Subject: [PATCH] fixes ore growth. yes im noob --- OpenRa.Game/Game.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenRa.Game/Game.cs b/OpenRa.Game/Game.cs index 4ddd12fec6..c7e1d09d61 100644 --- a/OpenRa.Game/Game.cs +++ b/OpenRa.Game/Game.cs @@ -160,8 +160,12 @@ namespace OpenRa.Game controller.orderGenerator.Tick(); if (--oreTicks == 0) - using( new PerfSample("ore")) + { + using (new PerfSample("ore")) map.GrowOre(SharedRandom); + oreTicks = oreFrequency; + } + world.Tick(); UnitInfluence.Tick(); foreach (var player in players.Values)