Fix unexplored terrain tooltip

This commit is contained in:
Paul Chote
2011-07-06 23:41:03 +12:00
parent ef8ed398ce
commit 07ae0688ff

View File

@@ -41,7 +41,8 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
tooltipContainer.BeforeRender = () =>
{
if (wic == null || wic.ActorTooltip == null) return;
if (wic == null || wic.TooltipType == Type.None)
return;
labelText = wic.TooltipType == Type.Unexplored ? "Unexplored Terrain" :
wic.ActorTooltip.Name();