summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/roadveh_cmd.cpp1
-rw-r--r--src/table/water_land.h6
-rw-r--r--src/water_cmd.cpp4
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));
}
}