summaryrefslogtreecommitdiff
path: root/src/effectvehicle_func.h
diff options
context:
space:
mode:
authorJoost Hopmans <joost@jhopmans.nl>2018-06-20 12:17:05 +0200
committerfrosch <github@elsenhans.name>2018-10-31 19:24:21 +0100
commit5029cd6f28e576558d4e9304093db6e9e1216f15 (patch)
tree7dbaabd742e5a503cd7f40d29b145e9c756c6718 /src/effectvehicle_func.h
parent18ca3e8660f90737d672b6780301ff4b998df56f (diff)
downloadopenttd-5029cd6f28e576558d4e9304093db6e9e1216f15.tar.xz
Fix: Only possible to build station next to competitors by using CTRL+click
Fix by checking only for stations owned by the current company when inspecting if there are multiple adjoining stations to the one being built. When building next to 2 or more owned stations we don't know which station should be extended. For other companies' stations that's not a problem since our station won't merge with theirs anyway. Calling to BuildStationPart should never have another company's station as a parameter to attach to unless the client is malicious, so just returning a generic error in that case.
Diffstat (limited to 'src/effectvehicle_func.h')
0 files changed, 0 insertions, 0 deletions