From 8df61c0fc0b36ea07391171b8a14908fdea0dd1a Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 20 Oct 2009 19:55:09 +0000 Subject: (svn r17826) -Codechange: GetRoadVehLength() is only used in one file, make it static. --- src/roadveh_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/roadveh_cmd.cpp') diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index dc2683cb8..1a63c06e4 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -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) { -- cgit v1.2.3-54-g00ecf