diff --git a/game.cpp b/game.cpp index ad46961..9a98f39 100644 --- a/game.cpp +++ b/game.cpp @@ -4,7 +4,6 @@ #include "debug.h" #include "itos.h" #include -using std::pair; Game::Game(stack* state_stack, SDL_Surface* display) : GameState(state_stack, display) diff --git a/menubutton.cpp b/menubutton.cpp index c09e2f9..e86e1e0 100644 --- a/menubutton.cpp +++ b/menubutton.cpp @@ -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; }