Fixed the button areas being too large
This commit is contained in:
@ -71,7 +71,7 @@ void MenuButton::render(SDL_Surface* display)
|
||||
bool MenuButton::is_at(int test_x, int test_y)
|
||||
{
|
||||
if (!visible) return false;
|
||||
return test_x >= x && test_y >= y && test_x <= x + 100 && test_y <= y + 40;
|
||||
return test_x > x && test_y > y && test_x < x + 80 && test_y < y + 20;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user