Revision 8927
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() && !UnitUnderCurso
InfoPanel_
} else {
switch (Selected.size()) {
case 0: { InfoPanel_
case 1: { InfoPanel_
default: { InfoPanel_
}
}
}
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: