Remove an unused variable.

Not entirely sure whether the e instead of event should have been used,
but the code is there since 2008 an no bug reports. ilor you still might
want to review it.

Fixes a g++ 4.6 warning.
This commit is contained in:
Mark de Wever 2011-01-16 09:49:08 +00:00
parent d9670655d1
commit 8f3ceb39a7

View File

@ -94,12 +94,6 @@ void controller_base::handle_event(const SDL_Event& event)
int x, y;
Uint8 mouse_flags = SDL_GetMouseState(&x, &y);
if ((mouse_flags & SDL_BUTTON_LEFT) == 0) {
SDL_Event e;
e.type = SDL_MOUSEBUTTONUP;
e.button.state = SDL_RELEASED;
e.button.button = SDL_BUTTON_LEFT;
e.button.x = x;
e.button.y = y;
get_mouse_handler_base().mouse_press(event.button, browse_);
post_mouse_press(event);
}