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
|
class AutoTarget : ITick, INotifyDamage
|
||||||
{
|
{
|
||||||
|
[Sync]
|
||||||
int nextScanTime = 0;
|
int nextScanTime = 0;
|
||||||
|
|
||||||
void AttackTarget(Actor self, Actor target)
|
void AttackTarget(Actor self, Actor target)
|
||||||
|
|||||||
@@ -31,9 +31,9 @@ namespace OpenRA.Traits
|
|||||||
|
|
||||||
class SelfHealing : ITick
|
class SelfHealing : ITick
|
||||||
{
|
{
|
||||||
|
[Sync]
|
||||||
int ticks;
|
int ticks;
|
||||||
|
|
||||||
|
|
||||||
public void Tick(Actor self)
|
public void Tick(Actor self)
|
||||||
{
|
{
|
||||||
var info = self.Info.Traits.Get<SelfHealingInfo>();
|
var info = self.Info.Traits.Get<SelfHealingInfo>();
|
||||||
|
|||||||
@@ -36,9 +36,8 @@ namespace OpenRA.Traits
|
|||||||
var unit = Rules.Info[ order.TargetString ];
|
var unit = Rules.Info[ order.TargetString ];
|
||||||
var producing = queue.CurrentItem(unit.Category);
|
var producing = queue.CurrentItem(unit.Category);
|
||||||
|
|
||||||
// Breaks linebuild
|
if( producing == null || producing.Item != order.TargetString || producing.RemainingTime != 0 )
|
||||||
//if( producing == null || producing.Item != order.TargetString || producing.RemainingTime != 0 )
|
return;
|
||||||
// return;
|
|
||||||
|
|
||||||
var building = self.World.CreateActor( order.TargetString, order.TargetLocation, order.Player );
|
var building = self.World.CreateActor( order.TargetString, order.TargetLocation, order.Player );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user