diff options
Diffstat (limited to 'src/vehicle.h')
-rw-r--r-- | src/vehicle.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vehicle.h b/src/vehicle.h index df5daf1a4..2a1b75d25 100644 --- a/src/vehicle.h +++ b/src/vehicle.h @@ -353,6 +353,11 @@ struct Vehicle { * @return the string representation. */ virtual const char* GetTypeString() = 0; + + /** + * Marks the vehicles to be redrawn and updates cached variables + */ + virtual void MarkDirty() {} }; /** @@ -417,6 +422,7 @@ struct InvalidVehicle : public Vehicle { virtual ~InvalidVehicle() {} const char *GetTypeString() { return "invalid vehicle"; } + void MarkDirty() { NOT_REACHED(); } }; #define is_custom_sprite(x) (x >= 0xFD) |