remove dead crap from ShroudRenderer
This commit is contained in:
@@ -117,11 +117,6 @@ namespace OpenRA
|
|||||||
|
|
||||||
world = new World();
|
world = new World();
|
||||||
|
|
||||||
Game.world.ActorAdded += a =>
|
|
||||||
{
|
|
||||||
if (a.Owner != null && a.Info.Traits.Contains<OwnedActorInfo>())
|
|
||||||
a.Owner.Shroud.Explore(a);
|
|
||||||
};
|
|
||||||
Timer.Time( "world: {0}" );
|
Timer.Time( "world: {0}" );
|
||||||
|
|
||||||
SequenceProvider.Initialize(manifest.Sequences);
|
SequenceProvider.Initialize(manifest.Sequences);
|
||||||
|
|||||||
@@ -61,9 +61,6 @@ namespace OpenRA
|
|||||||
|
|
||||||
public bool DisplayOnRadar(int x, int y) { return IsExplored(x, y); }
|
public bool DisplayOnRadar(int x, int y) { return IsExplored(x, y); }
|
||||||
|
|
||||||
public void Explore(World w, int2 center, int range) { dirty = true; }
|
|
||||||
public void Explore(Actor a) { if (a.Owner == a.World.LocalPlayer) dirty = true; }
|
|
||||||
|
|
||||||
static readonly byte[][] SpecialShroudTiles =
|
static readonly byte[][] SpecialShroudTiles =
|
||||||
{
|
{
|
||||||
new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
|
new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
|
||||||
|
|||||||
@@ -52,11 +52,7 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
self.World.WorldActor.traits.Get<UnitInfluence>().Remove(self, this);
|
self.World.WorldActor.traits.Get<UnitInfluence>().Remove(self, this);
|
||||||
self.Location = value;
|
self.Location = value;
|
||||||
|
|
||||||
self.World.WorldActor.traits.Get<Shroud>().UpdateActor(self);
|
self.World.WorldActor.traits.Get<Shroud>().UpdateActor(self);
|
||||||
|
|
||||||
// todo: dies
|
|
||||||
self.Owner.Shroud.Explore(self);
|
|
||||||
}
|
}
|
||||||
self.World.WorldActor.traits.Get<UnitInfluence>().Add(self, this);
|
self.World.WorldActor.traits.Get<UnitInfluence>().Add(self, this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user