Changes on viewport related files to deal with touchscreen options.

This commit is contained in:
Juanjo
2013-06-24 18:07:55 +02:00
committed by pelya
parent 06a276e5ad
commit 90914e262a
2 changed files with 13 additions and 8 deletions

View File

@@ -1951,6 +1951,8 @@ static void PlaceObject()
bool HandleViewportClicked(const ViewPort *vp, int x, int y)
{
if (_move_pressed) return false;
const Vehicle *v = CheckClickOnVehicle(vp, x, y);
if (_thd.place_mode & HT_VEHICLE) {
@@ -2923,7 +2925,6 @@ EventState VpHandlePlaceSizingDrag()
place_mouseup:
w->OnPlaceMouseUp(_thd.select_method, _thd.select_proc, _thd.selend, TileVirtXY(_thd.selstart.x, _thd.selstart.y), TileVirtXY(_thd.selend.x, _thd.selend.y));
return ES_HANDLED;
}