Deselect actors when their owner changes.

This commit is contained in:
Paul Chote
2019-01-20 12:37:22 +00:00
parent 0df159e73b
commit a545b2e5fa
2 changed files with 25 additions and 0 deletions

View File

@@ -336,6 +336,8 @@ namespace OpenRA
foreach (var t in TraitsImplementing<INotifyOwnerChanged>())
t.OnOwnerChanged(this, oldOwner, newOwner);
World.Selection.OnOwnerChanged(this, oldOwner, newOwner);
if (wasInWorld)
World.Add(this);
}