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:
@@ -31,6 +31,7 @@ namespace OpenRA.Traits
|
||||
|
||||
class AutoTarget : ITick, INotifyDamage
|
||||
{
|
||||
[Sync]
|
||||
int nextScanTime = 0;
|
||||
|
||||
void AttackTarget(Actor self, Actor target)
|
||||
|
||||
@@ -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>();
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user