Call OnPlaceMouseUp only for valid selection endpoints
commit6f8bb4b2b6d3abec0ffb81111d64d5851d88fb09
authorcirdan <cirdansw@gmail.com>
Wed, 14 Feb 2018 19:09:08 +0000 (14 20:09 +0100)
committercirdan <cirdansw@gmail.com>
Wed, 14 Feb 2018 19:09:08 +0000 (14 20:09 +0100)
tree7b376bbafa1d3ca6e585908bd1160df26e121e37
parenta3d4719f79a38edf1ef695741ec429174b92e8d8
Call OnPlaceMouseUp only for valid selection endpoints

Call OnPlaceMouseUp from VpHandlePlaceSizingDrag only for valid
selection endpoints, as no OnPlaceMouseUp override cares otherwise.
This allows to remove the point parameter from OnPlaceMouseUp.
src/airport_gui.cpp
src/dock_gui.cpp
src/rail_gui.cpp
src/road_gui.cpp
src/terraform_gui.cpp
src/tree_gui.cpp
src/viewport.cpp
src/window_gui.h