From 4fff63d790ab865cc93963d1939f27ee1c023ace Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 26 Jan 2011 17:31:44 +0000 Subject: (svn r21912) -Codechange: let road vehicles use gcache.last_speed/SetLastSpeed as well --- src/roadveh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/roadveh.h') diff --git a/src/roadveh.h b/src/roadveh.h index adec81bba..3cfecd609 100644 --- a/src/roadveh.h +++ b/src/roadveh.h @@ -104,7 +104,7 @@ struct RoadVehicle : public GroundVehicle { ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_ROADVEH_INC : EXPENSES_ROADVEH_RUN; } bool IsPrimaryVehicle() const { return this->IsFrontEngine(); } SpriteID GetImage(Direction direction) const; - int GetDisplaySpeed() const { return this->cur_speed / 2; } + int GetDisplaySpeed() const { return this->gcache.last_speed / 2; } int GetDisplayMaxSpeed() const { return this->vcache.cached_max_speed / 2; } Money GetRunningCost() const; int GetDisplayImageWidth(Point *offset = NULL) const; -- cgit v1.2.3-54-g00ecf