Revision 8927

Asked by Andre Novellino GouvĂȘa on 2015-02-13

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:
2015-02-14
Last query:
2015-02-14
Last reply:
2015-02-13
Best cybermind (iddqd-mail) said : #1

Fixed in rev.8931

Thanks cybermind, that solved my question.