I don't care if that "breaks linebuild", that's not how to fix it; a couple of missing [Sync]s

This commit is contained in:
Bob
2010-04-02 22:16:05 +12:00
parent b4298a445e
commit 93bdba6ca4
3 changed files with 4 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ namespace OpenRA.Traits
class AutoTarget : ITick, INotifyDamage
{
[Sync]
int nextScanTime = 0;
void AttackTarget(Actor self, Actor target)

View File

@@ -31,9 +31,9 @@ namespace OpenRA.Traits
class SelfHealing : ITick
{
[Sync]
int ticks;
public void Tick(Actor self)
{
var info = self.Info.Traits.Get<SelfHealingInfo>();

View File

@@ -36,9 +36,8 @@ namespace OpenRA.Traits
var unit = Rules.Info[ order.TargetString ];
var producing = queue.CurrentItem(unit.Category);
// Breaks linebuild
//if( producing == null || producing.Item != order.TargetString || producing.RemainingTime != 0 )
// return;
if( producing == null || producing.Item != order.TargetString || producing.RemainingTime != 0 )
return;
var building = self.World.CreateActor( order.TargetString, order.TargetLocation, order.Player );