summaryrefslogtreecommitdiff
path: root/src/roadveh.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-28 06:46:33 +0000
committerrubidium <rubidium@openttd.org>2007-08-28 06:46:33 +0000
commit2179faf5c82c2eca3aeeaf7f08fa0f18ad4772c1 (patch)
treecc70dd0831f84779834db7751c18a5a7eb87e5b1 /src/roadveh.h
parent41a0bd2b7499934518c5bfe0f3f79b9b0ad6237c (diff)
downloadopenttd-2179faf5c82c2eca3aeeaf7f08fa0f18ad4772c1.tar.xz
(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. Patch by nycom.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index 8547a2610..24b64424d 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -82,6 +82,7 @@ struct RoadVehicle : public Vehicle {
bool HasFront() const { return true; }
int GetImage(Direction direction) const;
int GetDisplaySpeed() const { return this->cur_speed * 10 / 32; }
+ int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 32; }
void Tick();
};