summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-28 06:10:20 +0000
committertron <tron@openttd.org>2006-06-28 06:10:20 +0000
commit2b7089c637c2540948973e1eb5a4f05c1c33e142 (patch)
tree437dbb31ed36170ab24cef5c5a7bd68ca3c1c4dd /road_cmd.c
parentbe0ec7bbf594bec1e88b50927298b4e9e24e9f2b (diff)
downloadopenttd-2b7089c637c2540948973e1eb5a4f05c1c33e142.tar.xz
(svn r5396) - Remove two fixed parameters
- Simplify an expresssion: c ? f(x) : f(y) -> f(c ? x : y)
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 21c837762..ff815b670 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -696,8 +696,9 @@ const byte _road_sloped_sprites[14] = {
* @param ti TileInfo
* @param road RoadBits to draw
*/
-static void DrawRoadBits(TileInfo* ti, RoadBits road)
+static void DrawRoadBits(TileInfo* ti)
{
+ RoadBits road = GetRoadBits(ti->tile);
const DrawRoadTileStruct *drts;
PalSpriteID image = 0;
Roadside roadside;
@@ -752,7 +753,7 @@ static void DrawTile_Road(TileInfo *ti)
{
switch (GetRoadTileType(ti->tile)) {
case ROAD_TILE_NORMAL:
- DrawRoadBits(ti, GetRoadBits(ti->tile));
+ DrawRoadBits(ti);
break;
case ROAD_TILE_CROSSING: {