summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-04-01 14:03:20 +0000
committerfrosch <frosch@openttd.org>2008-04-01 14:03:20 +0000
commit51155403a4ae3e9dc4252ff8d155e335092a1e44 (patch)
tree9a16bca519fc373be161aa0268902383ac926238 /src/vehicle.cpp
parentb93a612dfdc7e771ac11148b09262cbd12b9576c (diff)
downloadopenttd-51155403a4ae3e9dc4252ff8d155e335092a1e44.tar.xz
(svn r12531) -Codechange: Rename some variables for consistency.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 349ef1b5b..5602fb7b9 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -767,7 +767,7 @@ static void DoDrawVehicle(const Vehicle *v)
}
AddSortableSpriteToDraw(image, pal, v->x_pos + v->x_offs, v->y_pos + v->y_offs,
- v->sprite_width, v->sprite_height, v->z_height, v->z_pos, (v->vehstatus & VS_SHADOW) != 0);
+ v->x_extent, v->y_extent, v->z_extent, v->z_pos, (v->vehstatus & VS_SHADOW) != 0);
}
void ViewportAddVehicles(DrawPixelInfo *dpi)
@@ -3234,9 +3234,9 @@ void SpecialVehicle::UpdateDeltaXY(Direction direction)
{
this->x_offs = 0;
this->y_offs = 0;
- this->sprite_width = 1;
- this->sprite_height = 1;
- this->z_height = 1;
+ this->x_extent = 1;
+ this->y_extent = 1;
+ this->z_extent = 1;
}
void StopAllVehicles()