1
0
Fork 0

(svn r1900) Simplify a piece of code in the oldloader

release/0.4.5
tron 2005-02-22 14:37:52 +00:00
parent 5b261af659
commit aa55bc1559
1 changed files with 2 additions and 8 deletions

View File

@ -367,14 +367,8 @@ static void FixOldStations(void)
FOR_ALL_STATIONS(st) {
/* Check if we need to swap width and height for the station */
if (st->train_tile) {
if (_map5[st->train_tile] & 1) {
int w = st->trainst_w;
int h = st->trainst_h;
intswap(w, h);
st->trainst_w = w;
st->trainst_h = h;
}
if (st->train_tile != 0 && _map5[st->train_tile] & 1) {
swap_byte(&st->trainst_w, &st->trainst_h);
}
/* Check if there is a bus or truck station, and convert to new format */