mirror of https://github.com/OpenTTD/OpenTTD
(svn r1900) Simplify a piece of code in the oldloader
parent
5b261af659
commit
aa55bc1559
10
oldloader.c
10
oldloader.c
|
@ -367,14 +367,8 @@ static void FixOldStations(void)
|
||||||
|
|
||||||
FOR_ALL_STATIONS(st) {
|
FOR_ALL_STATIONS(st) {
|
||||||
/* Check if we need to swap width and height for the station */
|
/* Check if we need to swap width and height for the station */
|
||||||
if (st->train_tile) {
|
if (st->train_tile != 0 && _map5[st->train_tile] & 1) {
|
||||||
if (_map5[st->train_tile] & 1) {
|
swap_byte(&st->trainst_w, &st->trainst_h);
|
||||||
int w = st->trainst_w;
|
|
||||||
int h = st->trainst_h;
|
|
||||||
intswap(w, h);
|
|
||||||
st->trainst_w = w;
|
|
||||||
st->trainst_h = h;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if there is a bus or truck station, and convert to new format */
|
/* Check if there is a bus or truck station, and convert to new format */
|
||||||
|
|
Loading…
Reference in New Issue