(svn r17826) -Codechange: GetRoadVehLength() is only used in one file, make it static.
This commit is contained in:
@@ -144,9 +144,9 @@ void DrawRoadVehEngine(int x, int y, EngineID engine, SpriteID pal)
|
||||
DrawSprite(GetRoadVehIcon(engine), pal, x, y);
|
||||
}
|
||||
|
||||
byte GetRoadVehLength(const RoadVehicle *v)
|
||||
static uint GetRoadVehLength(const RoadVehicle *v)
|
||||
{
|
||||
byte length = 8;
|
||||
uint length = 8;
|
||||
|
||||
uint16 veh_len = GetVehicleCallback(CBID_VEHICLE_LENGTH, 0, 0, v->engine_type, v);
|
||||
if (veh_len != CALLBACK_FAILED) {
|
||||
|
Reference in New Issue
Block a user