summaryrefslogtreecommitdiff
path: root/src/order_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-06-29 20:48:34 +0000
committerrubidium <rubidium@openttd.org>2010-06-29 20:48:34 +0000
commitb1400ab65e2e2a353b002c7dcee0488251d56e5d (patch)
treeae3859470289fa25003a1b489e2d450c1df19e00 /src/order_func.h
parent642b463dfd86723c4484ba45e7732ef4c4e7494a (diff)
downloadopenttd-b1400ab65e2e2a353b002c7dcee0488251d56e5d.tar.xz
(svn r20034) -Fix [FS#3896] (r14869): road vehicles could get crashed twice in a tick
In RoadVehicleController at tick N a road vehicle gets a j of slightly less than adv_speed. In tick N+1 RoadVehCheckTrainCrash is called, then the road vehicle gets a j of slightly more than adv_speed. This causes a second call of RoadVehCheckTrainCrash. If in tick N the road vehicle moved onto a level crossing and a (maglev) entered that tile at the same tick, in tick N+1 the road vehicle would be crashed twice.
Diffstat (limited to 'src/order_func.h')
0 files changed, 0 insertions, 0 deletions