mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 11:08:12 +00:00
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:
parent
d9670655d1
commit
8f3ceb39a7
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user