Merge pull request #11166 from pchote/fix-gps-tooltips
Only refresh tooltip/health status of revealed frozen actors.
This commit is contained in:
@@ -29,9 +29,12 @@ namespace OpenRA.Mods.RA.Traits
|
|||||||
static readonly FrozenActorAction Refresh = (fufubg, fal, gps, fa) =>
|
static readonly FrozenActorAction Refresh = (fufubg, fal, gps, fa) =>
|
||||||
{
|
{
|
||||||
// Refreshes the visual state of the frozen actor, so ownership changes can be seen.
|
// Refreshes the visual state of the frozen actor, so ownership changes can be seen.
|
||||||
fa.RefreshState();
|
// This only makes sense if the frozen actor has already been revealed (i.e. has renderables)
|
||||||
if (fa.HasRenderables)
|
if (fa.HasRenderables)
|
||||||
|
{
|
||||||
|
fa.RefreshState();
|
||||||
fa.NeedRenderables = true;
|
fa.NeedRenderables = true;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
static readonly FrozenActorAction Remove = (fufubg, fal, gps, fa) =>
|
static readonly FrozenActorAction Remove = (fufubg, fal, gps, fa) =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user