summaryrefslogtreecommitdiff
path: root/src/roadveh_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-27 13:35:39 +0000
committerrubidium <rubidium@openttd.org>2007-12-27 13:35:39 +0000
commit722613f7f3d833e28193f4c628161a372aa346b5 (patch)
tree7262db82a9e80413b5783b88be96602fdd29a485 /src/roadveh_gui.cpp
parentae3206cd97f78a4657f6a33603125bf98811b726 (diff)
downloadopenttd-722613f7f3d833e28193f4c628161a372aa346b5.tar.xz
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
Diffstat (limited to 'src/roadveh_gui.cpp')
-rw-r--r--src/roadveh_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp
index 014684d72..16b5d062d 100644
--- a/src/roadveh_gui.cpp
+++ b/src/roadveh_gui.cpp
@@ -10,13 +10,13 @@
#include "table/strings.h"
#include "gui.h"
#include "window_gui.h"
-#include "vehicle.h"
#include "viewport.h"
#include "command_func.h"
#include "depot.h"
#include "vehicle_gui.h"
#include "newgrf_engine.h"
#include "strings_func.h"
+#include "vehicle_func.h"
void DrawRoadVehDetails(const Vehicle *v, int x, int y)
@@ -99,7 +99,7 @@ static inline int RoadVehLengthToPixels(int length)
return (length * 28) / 8;
}
-void DrawRoadVehImage(const Vehicle *v, int x, int y, int count, VehicleID selection)
+void DrawRoadVehImage(const Vehicle *v, int x, int y, VehicleID selection, int count)
{
/* Road vehicle lengths are measured in eighths of the standard length, so
* count is the number of standard vehicles that should be drawn. If it is