diff options
author | frosch <frosch@openttd.org> | 2009-02-20 23:21:04 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-02-20 23:21:04 +0000 |
commit | 8eb906dda9d3a7ca0affc2ae934a54a375bb1421 (patch) | |
tree | c222d98d9956931a464991dd3bcb16511fff70f4 | |
parent | 1f028894b54aac48fc99a0e5b0e14eeb19e0a5a1 (diff) | |
download | openttd-8eb906dda9d3a7ca0affc2ae934a54a375bb1421.tar.xz |
(svn r15534) -Codechange: Rename some variables.
-rw-r--r-- | src/roadveh_cmd.cpp | 1 | ||||
-rw-r--r-- | src/table/water_land.h | 6 | ||||
-rw-r--r-- | src/water_cmd.cpp | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 7027c94d9..40dcf3e18 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -227,7 +227,6 @@ CommandCost CmdBuildRoadVeh(TileIndex tile, DoCommandFlag flags, uint32 p1, uint // v->load_unload_time_rem = 0; // v->progress = 0; -// v->u.road.unk2 = 0; // v->u.road.overtaking = 0; v->last_station_visited = INVALID_STATION; diff --git a/src/table/water_land.h b/src/table/water_land.h index 4b8ea60e4..2343b6f11 100644 --- a/src/table/water_land.h +++ b/src/table/water_land.h @@ -6,9 +6,9 @@ struct WaterDrawTileStruct { byte delta_x; byte delta_y; byte delta_z; - byte width; - byte height; - byte unk; + byte size_x; + byte size_y; + byte size_z; SpriteID image; }; diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 57db1e767..2a6572629 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -566,8 +566,8 @@ static void DrawWaterStuff(const TileInfo *ti, const WaterDrawTileStruct *wdts, for (; wdts->delta_x != 0x80; wdts++) { AddSortableSpriteToDraw(wdts->image + base + ((wdts->image < 24) ? locks_base : 0), palette, ti->x + wdts->delta_x, ti->y + wdts->delta_y, - wdts->width, wdts->height, - wdts->unk, ti->z + wdts->delta_z, + wdts->size_x, wdts->size_y, + wdts->size_z, ti->z + wdts->delta_z, IsTransparencySet(TO_BUILDINGS)); } } |