Remove unused trait lookup.

This commit is contained in:
Matthias Mailänder
2021-02-20 10:18:56 +01:00
committed by reaperrr
parent 470bc4e092
commit cefb2e7cc6

View File

@@ -137,7 +137,6 @@ namespace OpenRA.Mods.Cnc.Traits
readonly MadTank mad; readonly MadTank mad;
readonly IMove move; readonly IMove move;
readonly WithFacingSpriteBody wfsb; readonly WithFacingSpriteBody wfsb;
readonly ScreenShaker screenShaker;
readonly bool assignTargetOnFirstRun; readonly bool assignTargetOnFirstRun;
int ticks; int ticks;
@@ -158,7 +157,6 @@ namespace OpenRA.Mods.Cnc.Traits
move = self.Trait<IMove>(); move = self.Trait<IMove>();
wfsb = self.Trait<WithFacingSpriteBody>(); wfsb = self.Trait<WithFacingSpriteBody>();
screenShaker = self.World.WorldActor.Trait<ScreenShaker>();
} }
protected override void OnFirstRun(Actor self) protected override void OnFirstRun(Actor self)