(svn r1900) Simplify a piece of code in the oldloader
authortron
Tue, 22 Feb 2005 14:37:52 +0000
changeset 1396 9d83f4094235
parent 1395 f2533e6450d5
child 1397 fa8539dcab46
(svn r1900) Simplify a piece of code in the oldloader
oldloader.c
--- a/oldloader.c	Tue Feb 22 13:13:57 2005 +0000
+++ b/oldloader.c	Tue Feb 22 14:37:52 2005 +0000
@@ -367,14 +367,8 @@
 
 	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 */