summaryrefslogtreecommitdiff
path: root/src/ground_vehicle.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-03-06 12:54:42 +0000
committerterkhen <terkhen@openttd.org>2010-03-06 12:54:42 +0000
commit06a3faa651f71f46961777970e500ed54c48be62 (patch)
tree5e7b27ca79cc85fefb8a52e44fdba934b1bdd362 /src/ground_vehicle.cpp
parenta5f9a7c1a5fc09b6e996bd5448c94df2ab24b272 (diff)
downloadopenttd-06a3faa651f71f46961777970e500ed54c48be62.tar.xz
(svn r19343) -Codechange: Make RoadVehicle a child class of GroundVehicle.
-Add: Required acceleration functions at RoadVehicle.
Diffstat (limited to 'src/ground_vehicle.cpp')
-rw-r--r--src/ground_vehicle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ground_vehicle.cpp b/src/ground_vehicle.cpp
index 92c135ee5..419d9483b 100644
--- a/src/ground_vehicle.cpp
+++ b/src/ground_vehicle.cpp
@@ -11,6 +11,7 @@
#include "stdafx.h"
#include "train.h"
+#include "roadveh.h"
#include "ground_vehicle.hpp"
#include "window_type.h"
#include "vehicle_gui.h"
@@ -148,3 +149,5 @@ int GroundVehicle<T, Type>::GetAcceleration() const
/* Instantiation for Train */
template struct GroundVehicle<Train, VEH_TRAIN>;
+/* Instantiation for RoadVehicle */
+template struct GroundVehicle<RoadVehicle, VEH_ROAD>;