Turn Actor.GetCurrentActivity into a property

This commit is contained in:
Oliver Brakmann
2016-10-29 16:56:31 +02:00
parent 04dbda6dcd
commit 3e9bf7aa4d
8 changed files with 19 additions and 24 deletions

View File

@@ -76,7 +76,7 @@ namespace OpenRA.Mods.Common.Traits.Render
yield return new TextRenderable(font, self.CenterPosition - offset, 0, color, tagString);
// Get the actor's activity.
var activity = self.GetCurrentActivity();
var activity = self.CurrentActivity;
if (activity != null)
{
var activityName = activity.GetType().ToString().Split('.').Last();