summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-11-01 16:51:47 +0000
committerfrosch <frosch@openttd.org>2011-11-01 16:51:47 +0000
commitbbc3409942565cd6876016e270288517cb6acafb (patch)
tree3079bbaa5682e25b2805774cd2382e9c0c6ef109 /src/vehicle_base.h
parente802dc66b9d1e913e77816184ed2744f737823ec (diff)
downloadopenttd-bbc3409942565cd6876016e270288517cb6acafb.tar.xz
(svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index e822a0b86..9f94f63f4 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -347,7 +347,7 @@ public:
* @param direction the direction the vehicle is facing
* @return the sprite for the given vehicle in the given direction
*/
- virtual SpriteID GetImage(Direction direction) const { return 0; }
+ virtual SpriteID GetImage(Direction direction, EngineImageType image_type) const { return 0; }
const GRFFile *GetGRF() const;
uint32 GetGRFID() const;
@@ -992,7 +992,7 @@ struct SpecializedVehicle : public Vehicle {
* it gives ~3% runtime improvements in games with many vehicles */
if (turned) ((T *)this)->T::UpdateDeltaXY(this->direction);
SpriteID old_image = this->cur_image;
- this->cur_image = ((T *)this)->T::GetImage(this->direction);
+ this->cur_image = ((T *)this)->T::GetImage(this->direction, EIT_ON_MAP);
if (moved || this->cur_image != old_image) VehicleMove(this, true);
}
};