#313 fixed -- there's unsynced code that runs in Tick, too.

This commit is contained in:
Chris Forbes
2010-10-16 09:48:39 +13:00
parent 999eef2ec9
commit bba9c4b976
2 changed files with 7 additions and 5 deletions

View File

@@ -135,8 +135,12 @@ namespace OpenRA
if( isNetTick ) orderManager.Tick();
world.OrderGenerator.Tick( world );
world.Selection.Tick( world );
Sync.CheckSyncUnchanged(world, () =>
{
world.OrderGenerator.Tick(world);
world.Selection.Tick(world);
});
world.Tick();
worldRenderer.Tick();

View File

@@ -13,13 +13,11 @@ using System.Collections.Generic;
using OpenRA.Collections;
using OpenRA.Effects;
using OpenRA.FileFormats;
using OpenRA.Graphics;
using OpenRA.Network;
using OpenRA.Orders;
using OpenRA.Traits;
using XRandom = OpenRA.Thirdparty.Random;
using OpenRA.Widgets;
using XRandom = OpenRA.Thirdparty.Random;
namespace OpenRA
{