Auto-select last used tool for railroad

This commit is contained in:
Sergii Pylypenko
2014-11-14 20:27:58 +02:00
committed by pelya
parent fdddd873dd
commit 400b6daad0
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -25,6 +25,7 @@
#include "../fileio_func.h"
#include "../settings_type.h"
#include "../tilehighlight_func.h"
#include "../viewport_func.h"
#include "sdl_v.h"
#include <SDL.h>
#ifdef __ANDROID__
@@ -623,7 +624,7 @@ int VideoDriver_SDL::PollEvent()
// Two-finger click - hacky way to determine if the right mouse button is already pressed without processing the left button event
// Cancel whatewer action we were doing, to allow two finger scrolling
ResetObjectToPlace();
SelectLastTool();
ToolbarSelectLastTool();
}
#endif
} else if (ev.button.button == SDL_BUTTON_RIGHT) {