diff options
author | frosch <frosch@openttd.org> | 2008-04-01 14:03:20 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-04-01 14:03:20 +0000 |
commit | 15a9fba867d2849f38b8d46364ad945df690c21d (patch) | |
tree | 9a16bca519fc373be161aa0268902383ac926238 /src/aircraft_cmd.cpp | |
parent | 9d914a803c0e9d39b8d86427902b0aac4c6d88ce (diff) | |
download | openttd-15a9fba867d2849f38b8d46364ad945df690c21d.tar.xz |
(svn r12531) -Codechange: Rename some variables for consistency.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 25be72919..f4c60c9d1 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -54,17 +54,17 @@ void Aircraft::UpdateDeltaXY(Direction direction) case FLYING: x = MKIT(24, 24, -1, -1); break; default: x = MKIT( 2, 2, -1, -1); break; } - this->z_height = 5; + this->z_extent = 5; break; - case AIR_SHADOW: this->z_height = 1; x = MKIT(2, 2, 0, 0); break; - case AIR_ROTOR: this->z_height = 1; x = MKIT(2, 2, -1, -1); break; + case AIR_SHADOW: this->z_extent = 1; x = MKIT(2, 2, 0, 0); break; + case AIR_ROTOR: this->z_extent = 1; x = MKIT(2, 2, -1, -1); break; } #undef MKIT this->x_offs = GB(x, 0, 8); this->y_offs = GB(x, 8, 8); - this->sprite_width = GB(x, 16, 8); - this->sprite_height = GB(x, 24, 8); + this->x_extent = GB(x, 16, 8); + this->y_extent = GB(x, 24, 8); } |