Event.button.clicks
of the SDL_Event
. The double click is stored as a flag which is cleared when the MouseDoubleClick()
function is called (d215c732062cbc73b9922ce270be70c36d00bb9d and 7977b46d36aee6e0eb4676ed1f9a14859d9f5408).
This reverts 72a6e20, as this hack is no longer required (closes #1745). Double clicking a friend in the friend list still works (#444) with both gfx_asyncrender_old 0
and 1
.
Refactorings an...std::algorithm::remove_if
std::vector::erase
for(auto it = v.begin(); it != v.end();) { it = condition(*it) ? vec.erase(it) : it + 1; }
should work(tm)\for(int i = v.size()-1; i >= 0; i--) { if(condition(v[i]) erase(v.begin() + i); }
for(int i = v.size()-1; i >= 0; i--) { if(condition(v[i]) erase(v.begin() + i); }