Revision 8927

Asked by Andre Novellino Gouvêa

I have a question in regards to Revision 8927, which should fix the bug with non-selectable units' information appearing when hovered over. Wouldn't the fix also make the information of selectable units not appear, if they are hovered over instead of selected?

This is the fix I had implemented for that bug in Wyrmsun, which maintains the former functionality, while fixing the bug:

void CInfoPanel::Draw()
{
 if (UnitUnderCursor && Selected.empty() && !UnitUnderCursor->Type->IsNotSelectable) {
  InfoPanel_draw_single_selection(UnitUnderCursor);
 } else {
  switch (Selected.size()) {
   case 0: { InfoPanel_draw_no_selection(); break; }
   case 1: { InfoPanel_draw_single_selection(NULL); break; }
   default: { InfoPanel_draw_multiple_selection(); break; }
  }
 }
}

Could this be a better fix to that bug?

Question information

Language:
English Edit question
Status:
Solved
For:
Stratagus Edit question
Assignee:
cybermind Edit question
Solved by:
cybermind
Solved:
Last query:
Last reply:
Revision history for this message
Best cybermind (iddqd-mail) said :
#1

Fixed in rev.8931

Revision history for this message
Andre Novellino Gouvêa (andre-ng) said :
#2

Thanks cybermind, that solved my question.