summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-04-29 22:33:51 +0000
committerrubidium <rubidium@openttd.org>2007-04-29 22:33:51 +0000
commitec9ac99d01c74f1cb63e8c934c8a13d8aca2422a (patch)
tree81c46786f55f9842ddb4b237507c86df8fd72924 /src/vehicle.h
parent202009522c3075e26b675ed0408075b8663b0859 (diff)
downloadopenttd-ec9ac99d01c74f1cb63e8c934c8a13d8aca2422a.tar.xz
(svn r9755) -Codechange: refactor some more of the begin loading stuff.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h6
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)