# HG changeset patch # User frosch # Date 2009-02-20 23:21:04 # Node ID 3538f6e8d64ee6f7d28a59c7acd03072233c7238 # Parent 02f630c95a8550cb632ac32bcd0ca0efec533796 (svn r15534) -Codechange: Rename some variables. diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -227,7 +227,6 @@ CommandCost CmdBuildRoadVeh(TileIndex ti // 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 --- 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 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -566,8 +566,8 @@ static void DrawWaterStuff(const TileInf 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)); } }