Mercurial > hg > openttd
diff src/rail.h @ 9775:c3caa51b9888 draft
(svn r13912) -Codechange: remove some casts by returning the proper type instead of void*.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 01 Aug 2008 15:07:31 +0000 |
parents | 83bad4f336b3 |
children | 4b2c65748b47 |
line wrap: on
line diff
--- a/src/rail.h +++ b/src/rail.h @@ -193,10 +193,10 @@ 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);