That didn't go as well as I'd hoped

This commit is contained in:
Kayne Ruse
2015-01-21 04:20:31 +11:00
parent f4e4728ce3
commit a5757748cf
3 changed files with 26 additions and 18 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ void LobbyMenu::MouseButtonUp(SDL_MouseButtonEvent const& button) {
//has the user selected a server on the list?
BoundingBox tmpBox = listBox;
tmpBox.h *= serverInfo.size();
if (tmpBox.CheckOverlap({button.x, button.y})) {
if (tmpBox.CheckCollision({button.x, button.y, 0, 0})) {
selection = &serverInfo[(button.y - listBox.y)/listBox.h];
}
else {