Merge branch 'enhanced_viewport_overlay' into jgrpp

# Conflicts:
#	src/vehicle.cpp
This commit is contained in:
Jonathan G Rennison
2017-09-04 01:24:10 +01:00
12 changed files with 212 additions and 204 deletions

View File

@@ -3758,7 +3758,7 @@ static ChangeInfoResult AirportChangeInfo(uint airport, int numinfo, int prop, B
const AirportTileTable *copy_from;
try {
for (byte j = 0; j < as->num_table; j++) {
as->rotation[j] = (Direction)buf->ReadByte();
const_cast<Direction&>(as->rotation[j]) = (Direction)buf->ReadByte();
for (int k = 0;; k++) {
att[k].ti.x = buf->ReadByte(); // Offsets from northermost tile
att[k].ti.y = buf->ReadByte();
@@ -7931,6 +7931,7 @@ static void ResetCustomAirports()
}
free(as->table);
free(as->depot_table);
free(as->rotation);
free(as);
}