(svn r10772) -Codechange: also make use of the generic clean and destroy pool callback functions for vehicle.

This commit is contained in:
rubidium
2007-08-03 20:17:26 +00:00
parent 48df8b374c
commit 9741094464
2 changed files with 5 additions and 32 deletions

View File

@@ -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; }
};