engine.c
changeset 1908 bc48a30aba72
parent 1904 cf8a8adc33c9
child 1926 68d60188a22f
--- a/engine.c	Sun Jun 05 23:01:10 2005 +0000
+++ b/engine.c	Mon Jun 06 00:19:24 2005 +0000
@@ -589,6 +589,16 @@
 }
 
 /**
+ * Check if a wagon is currently using a wagon override
+ * @param v The wagon to check
+ * @return true if it is using an override, false otherwise
+ */
+bool UsesWagonOverride(const Vehicle *v) {
+	assert(v->type == VEH_Train);
+	return (GetWagonOverrideSpriteSet(v->engine_type, v->u.rail.first_engine) != NULL);
+}
+
+/**
  * Evaluates a newgrf callback
  * @param callback_info info about which callback to evaluate
  *  (bit 0-7)  = CallBack id of the callback to use, see CallBackId enum