ore frequence OAOO

This commit is contained in:
Chris Forbes
2009-11-04 20:30:36 +13:00
parent e8bbf051f9
commit 86111b9e91

View File

@@ -136,7 +136,8 @@ namespace OpenRa.Game
lastTime = Environment.TickCount; lastTime = Environment.TickCount;
} }
static int oreTicks = 20; const int oreFrequency = 20;
static int oreTicks = oreFrequency;
public static int RenderFrame = 0; public static int RenderFrame = 0;
public static void Tick() public static void Tick()
@@ -155,7 +156,7 @@ namespace OpenRa.Game
if (--oreTicks == 0) if (--oreTicks == 0)
{ {
map.GrowOre(p => IsCellBuildable(p, UnitMovementType.Wheel), SharedRandom); map.GrowOre(p => IsCellBuildable(p, UnitMovementType.Wheel), SharedRandom);
oreTicks = 20; oreTicks = oreFrequency;
} }
world.Tick(); world.Tick();
UnitInfluence.Tick(); UnitInfluence.Tick();