(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.
This commit is contained in:
@@ -28,10 +28,11 @@ const Vehicle *GetLastVehicleInChain(const Vehicle *v);
|
||||
uint CountVehiclesInChain(const Vehicle *v);
|
||||
bool IsEngineCountable(const Vehicle *v);
|
||||
void DeleteVehicleChain(Vehicle *v);
|
||||
Vehicle *VehicleFromPos(TileIndex tile, void *data, VehicleFromPosProc *proc);
|
||||
Vehicle *VehicleFromPosXY(int x, int y, void *data, VehicleFromPosProc *proc);
|
||||
void FindVehicleOnPos(TileIndex tile, void *data, VehicleFromPosProc *proc);
|
||||
void FindVehicleOnPosXY(int x, int y, void *data, VehicleFromPosProc *proc);
|
||||
bool HasVehicleOnPos(TileIndex tile, void *data, VehicleFromPosProc *proc);
|
||||
bool HasVehicleOnPosXY(int x, int y, void *data, VehicleFromPosProc *proc);
|
||||
void CallVehicleTicks();
|
||||
Vehicle *FindVehicleOnTileZ(TileIndex tile, byte z);
|
||||
uint8 CalcPercentVehicleFilled(const Vehicle *v, StringID *color);
|
||||
|
||||
void InitializeTrains();
|
||||
@@ -50,8 +51,7 @@ SpriteID GetRotorImage(const Vehicle *v);
|
||||
uint32 VehicleEnterTile(Vehicle *v, TileIndex tile, int x, int y);
|
||||
|
||||
StringID VehicleInTheWayErrMsg(const Vehicle* v);
|
||||
Vehicle *FindVehicleBetween(TileIndex from, TileIndex to, byte z, bool without_crashed = false);
|
||||
Vehicle *GetVehicleTunnelBridge(TileIndex tile, TileIndex endtile);
|
||||
bool HasVehicleOnTunnelBridge(TileIndex tile, TileIndex endtile);
|
||||
|
||||
void DecreaseVehicleValue(Vehicle *v);
|
||||
void CheckVehicleBreakdown(Vehicle *v);
|
||||
|
Reference in New Issue
Block a user