Changeset - r1396:376323ae46c9
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-02-22 14:37:52
tron@openttd.org
(svn r1900) Simplify a piece of code in the oldloader
1 file changed with 2 insertions and 8 deletions:
0 comments (0 inline, 0 general)
oldloader.c
Show inline comments
 
@@ -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 */
0 comments (0 inline, 0 general)