Avoid unnecessary variable assignment.
This commit is contained in:
committed by
abcdefg30
parent
2c5f1f343f
commit
ff20c1c59d
@@ -223,7 +223,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
camera.QueueActivity(new Wait(info.CameraRemoveDelay));
|
||||
camera.QueueActivity(new RemoveSelf());
|
||||
camera = null;
|
||||
}
|
||||
|
||||
void RemoveBeacon(Beacon beacon)
|
||||
@@ -234,7 +233,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
Self.World.AddFrameEndTask(w =>
|
||||
{
|
||||
w.Remove(beacon);
|
||||
beacon = null;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -269,7 +269,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
camera.QueueActivity(new Wait(info.CameraRemoveDelay));
|
||||
camera.QueueActivity(new RemoveSelf());
|
||||
camera = null;
|
||||
}
|
||||
|
||||
void RemoveBeacon(Beacon beacon)
|
||||
@@ -280,7 +279,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
Self.World.AddFrameEndTask(w =>
|
||||
{
|
||||
w.Remove(beacon);
|
||||
beacon = null;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user