(svn r18121) -Codechange: pass the maximum left/right location to the Draw*Engine functions

This commit is contained in:
rubidium
2009-11-16 17:15:42 +00:00
parent 179b924173
commit 1c5a92ae98
9 changed files with 28 additions and 26 deletions

View File

@@ -138,9 +138,9 @@ SpriteID RoadVehicle::GetImage(Direction direction) const
return sprite;
}
void DrawRoadVehEngine(int x, int y, EngineID engine, SpriteID pal)
void DrawRoadVehEngine(int left, int right, int preferred_x, int y, EngineID engine, SpriteID pal)
{
DrawSprite(GetRoadVehIcon(engine), pal, x, y);
DrawSprite(GetRoadVehIcon(engine), pal, preferred_x, y);
}
static uint GetRoadVehLength(const RoadVehicle *v)