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 | 2b6978e48e0f043309e8b096dd66fad50f212d53 (patch) | |
tree | 576a694ab2c4d476304db029d7a6e392d43aa596 /src/rail.h | |
parent | 0a67e72df55348a9bd64f9bbe9f77205e753ed4b (diff) | |
download | openttd-2b6978e48e0f043309e8b096dd66fad50f212d53.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); |