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) {
 } 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

English Edit question
Stratagus Edit question
cybermind Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Best cybermind (iddqd-mail) said :

Fixed in rev.8931

Revision history for this message
Andre Novellino GouvĂȘa (andre-ng) said :

Thanks cybermind, that solved my question.