Fix a small issue with tech overlays.

This was SVN commit r11706.
This commit is contained in:
leper 2012-05-01 18:56:47 +00:00
parent bfb7526bcf
commit d92ef0d13e

View File

@ -396,6 +396,8 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, items, callback)
// Button Function (need nested functions to get the closure right) // Button Function (need nested functions to get the closure right)
button.onpress = (function(e){ return function() { callback(e) } })(item); button.onpress = (function(e){ return function() { callback(e) } })(item);
if (guiName == RESEARCH)
{
if (item.pair) if (item.pair)
{ {
button.onpress = (function(e){ return function() { callback(e) } })(item.bottom); button.onpress = (function(e){ return function() { callback(e) } })(item.bottom);
@ -415,6 +417,12 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, items, callback)
pair.hidden = false; pair.hidden = false;
} }
else
{
// Hide the overlay
selection.hidden = true;
}
}
// Get icon image // Get icon image
if (guiName == FORMATION) if (guiName == FORMATION)