diff options
author | rubidium <rubidium@openttd.org> | 2008-08-01 15:07:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-01 15:07:31 +0000 |
commit | ad36ea6b29f42d33e1600a131b0cbea615899272 (patch) | |
tree | 576a694ab2c4d476304db029d7a6e392d43aa596 /src/rail.h | |
parent | 7c0b1172e1e793d9674f5e69cf17c1f202b99369 (diff) | |
download | openttd-ad36ea6b29f42d33e1600a131b0cbea615899272.tar.xz |
(svn r13912) -Codechange: remove some casts by returning the proper type instead of void*.
Diffstat (limited to 'src/rail.h')
-rw-r--r-- | src/rail.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail.h b/src/rail.h index 894dd244b..f5ee6b14f 100644 --- a/src/rail.h +++ b/src/rail.h @@ -193,10 +193,10 @@ static inline Money RailConvertCost(RailType from, RailType to) return RailBuildCost(to) + _price.remove_rail; } -void *UpdateTrainPowerProc(Vehicle *v, void *data); +Vehicle *UpdateTrainPowerProc(Vehicle *v, void *data); void DrawTrainDepotSprite(int x, int y, int image, RailType railtype); void DrawDefaultWaypointSprite(int x, int y, RailType railtype); -void *EnsureNoTrainOnTrackProc(Vehicle *v, void *data); +Vehicle *EnsureNoTrainOnTrackProc(Vehicle *v, void *data); int TicksToLeaveDepot(const Vehicle *v); Foundation GetRailFoundation(Slope tileh, TrackBits bits); |