summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-03 20:17:26 +0000
committerrubidium <rubidium@openttd.org>2007-08-03 20:17:26 +0000
commit9df2e25258122f76184b92648a4cc9717f68f9f5 (patch)
tree7067e69c760c84deb2c5ba156afacc8b1ac97873 /src/vehicle.h
parentbf8ec55db565af4ddefc2a42b7cd6ae44d9e69b7 (diff)
downloadopenttd-9df2e25258122f76184b92648a4cc9717f68f9f5.tar.xz
(svn r10772) -Codechange: also make use of the generic clean and destroy pool callback functions for vehicle.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index 410b66890..bdd646987 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -366,7 +366,7 @@ struct Vehicle : PoolItem<Vehicle, VehicleID, &_Vehicle_pool> {
* Get a string 'representation' of the vehicle type.
* @return the string representation.
*/
- virtual const char* GetTypeString() const = 0;
+ virtual const char* GetTypeString() const { return "base vehicle"; }
/**
* Marks the vehicles to be redrawn and updates cached variables
@@ -417,7 +417,7 @@ struct Vehicle : PoolItem<Vehicle, VehicleID, &_Vehicle_pool> {
/**
* Calls the tick handler of the vehicle
*/
- virtual void Tick() = 0;
+ virtual void Tick() {};
bool IsValid() const { return this->type != VEH_INVALID; }
};