From 9474db5cb6c4b9db2f7b68d1dda1a523305282f1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 7 Sep 2008 11:23:10 +0000 Subject: (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. --- src/pbs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pbs.h') diff --git a/src/pbs.h b/src/pbs.h index c0ee485d1..8e426705f 100644 --- a/src/pbs.h +++ b/src/pbs.h @@ -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); -- cgit v1.2.3-54-g00ecf