diff options
author | rubidium <rubidium@openttd.org> | 2008-09-07 11:23:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-09-07 11:23:10 +0000 |
commit | 6e67ea1f9dac718ec58d54b73883b0dd043bff2d (patch) | |
tree | 94706b006a8848169482c99bfbb9ca6f9c734954 /src/pbs.h | |
parent | 466e7740d71bb76ed96d3509e8b987e1ed9019bb (diff) | |
download | openttd-6e67ea1f9dac718ec58d54b73883b0dd043bff2d.tar.xz |
(svn r14258) -Codechange: rework the way to query the vehicle hash to make sure it always results in the same irregardless of the order of the hash-linked-list.
-Fix: desync in PBS reservation following, vehicle flooding and road vehicle overtake/follow code.
Diffstat (limited to 'src/pbs.h')
-rw-r--r-- | src/pbs.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,7 +27,7 @@ struct PBSTileInfo { PBSTileInfo(TileIndex _t, Trackdir _td, bool _okay) : tile(_t), trackdir(_td), okay(_okay) {} }; -PBSTileInfo FollowTrainReservation(const Vehicle *v, Vehicle **train_on_res = NULL); +PBSTileInfo FollowTrainReservation(const Vehicle *v, bool *train_on_res = NULL); bool IsSafeWaitingPosition(const Vehicle *v, TileIndex tile, Trackdir trackdir, bool include_line_end, bool forbid_90deg = false); bool IsWaitingPositionFree(const Vehicle *v, TileIndex tile, Trackdir trackdir, bool forbid_90deg = false); |