summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-01-03 14:40:43 +0100
committerErich Eckner <git@eckner.net>2021-07-21 19:01:16 +0200
commit114be07283e625ba2fc42a895a38d36b2ad4ac33 (patch)
tree90b99a8a3713185707afd7de029a8f15310386d7 /src/vehicle_base.h
parent6c33b4ed284eabebc1077ef4093502b150ec71b8 (diff)
downloadopenttd-chunnel.tar.xz
chunnel patch originalchunnel
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index a5549b444..91d4ac0f9 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -367,6 +367,12 @@ public:
uint GetConsistTotalCapacity() const;
/**
+ * Is this vehicle drawn?
+ * @return true if it is drawn
+ */
+ bool IsDrawn() const;
+
+ /**
* Marks the vehicles to be redrawn and updates cached variables
*
* This method marks the area of the vehicle on the screen as dirty.