From ec9ac99d01c74f1cb63e8c934c8a13d8aca2422a Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 29 Apr 2007 22:33:51 +0000 Subject: (svn r9755) -Codechange: refactor some more of the begin loading stuff. --- src/vehicle.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/vehicle.h') 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) -- cgit v1.2.3-54-g00ecf