diff options
author | frosch <frosch@openttd.org> | 2009-07-17 22:00:13 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-07-17 22:00:13 +0000 |
commit | f129634f524b38bcb00f5e7b24ccd8a982a16ca9 (patch) | |
tree | a1c3aae7a3c1fb5ba73d72a46b0adb1e676bb5c0 /src/train.h | |
parent | 82ac703e2d0598a0f282ac25b91f7d437fff808c (diff) | |
download | openttd-f129634f524b38bcb00f5e7b24ccd8a982a16ca9.tar.xz |
(svn r16867) -Feature(ette): Turn variable 0E/8E (vertical offset for trains in depot) and variable 1E/9E bit 3 (wagon width in depot) into grf-local variables.
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/train.h b/src/train.h index 8dca09f96..5dc3c1cfa 100644 --- a/src/train.h +++ b/src/train.h @@ -126,6 +126,7 @@ struct Train : public SpecializedVehicle<Train, VEH_TRAIN> { int GetDisplaySpeed() const { return this->tcache.last_speed; } int GetDisplayMaxSpeed() const { return this->tcache.cached_max_speed; } Money GetRunningCost() const; + int GetDisplayImageWidth(Point *offset = NULL) const; bool IsInDepot() const { return CheckTrainInDepot(this, false) != -1; } bool IsStoppedInDepot() const { return CheckTrainStoppedInDepot(this) >= 0; } bool Tick(); |