Files @ r23033:8a2aa5b06604
Branch filter:

Location: cpp/openttd-patchpack/source/.editorconfig

Joost Hopmans
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.
1
2
3
4
5
6
7
8
9
root = true

[*]
insert_final_newline = true
trim_trailing_whitespace = true

[*.{c,cpp,h,hpp}]
indent_style = tab
charset = utf-8