From 5cb74cb049b0a1ecb1a1efa682380108f1072146 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 22 Feb 2005 14:37:52 +0000 Subject: (svn r1900) Simplify a piece of code in the oldloader --- oldloader.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/oldloader.c b/oldloader.c index 2461f214b..c3b5f01b8 100644 --- a/oldloader.c +++ b/oldloader.c @@ -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 */ -- cgit v1.2.3-54-g00ecf