summaryrefslogtreecommitdiff
path: root/src/crashlog.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-08-31 14:31:37 +0200
committerGitHub <noreply@github.com>2021-08-31 14:31:37 +0200
commit2c05412d722903748bf928fd201b15cdad586a94 (patch)
tree0878e1a863cb7ca20215eadee20ac0fe68c893f9 /src/crashlog.h
parent69e9acd70285feacf4ab44603d4f73b1f5bd0a78 (diff)
downloadopenttd-2c05412d722903748bf928fd201b15cdad586a94.tar.xz
Fix #9407: desync when founding a town nearby a station (#9526)
"stations_near" wasn't updated when founding a town near a station. As this variable is not saved, any client joining after the town is founded has a different value for "stations_near", potentially causing desyncs. As the intention of this if() statement was to skip an expensive calculation when there are clearly no stations, better to move that check inside the function, so other places also enjoy the speedup.
Diffstat (limited to 'src/crashlog.h')
0 files changed, 0 insertions, 0 deletions