Use Airport::GetHangarDataByTile in more places
commit2138c9a753e4433a587c40b7bad7a6b2a546c388
authorcirdan <cirdansw@gmail.com>
Tue, 5 Dec 2017 20:18:50 +0000 (5 21:18 +0100)
committercirdan <cirdansw@gmail.com>
Tue, 5 Dec 2017 20:18:50 +0000 (5 21:18 +0100)
treea0b4e448198a9e1c7311b61b5c56e156b57fa70b
parentc8dcdbb077b2db83d6ab258c0d334aa7e86152a4
Use Airport::GetHangarDataByTile in more places

Make Airport::GetHangarDataByTile public, define it offline, have
it return NULL if the given tile is not a hangar and use it also
in GetVehiclePosOnBuild and IsHangar.
src/airport.cpp
src/station_base.h
src/station_cmd.cpp