oldloader.c
changeset 3558 9a3e12615b1c
parent 3431 e3b4bc9c4375
child 3580 14bf6e7715c8
equal deleted inserted replaced
3557:1e9867319bce 3558:9a3e12615b1c
     1 /* $Id$ */
     1 /* $Id$ */
     2 
     2 
     3 #include "stdafx.h"
     3 #include "stdafx.h"
     4 #include "openttd.h"
     4 #include "openttd.h"
       
     5 #include "station_map.h"
     5 #include "table/strings.h"
     6 #include "table/strings.h"
     6 #include "functions.h"
     7 #include "functions.h"
     7 #include "map.h"
     8 #include "map.h"
     8 #include "town.h"
     9 #include "town.h"
     9 #include "industry.h"
    10 #include "industry.h"
   357 {
   358 {
   358 	Station *st;
   359 	Station *st;
   359 
   360 
   360 	FOR_ALL_STATIONS(st) {
   361 	FOR_ALL_STATIONS(st) {
   361 		/* Check if we need to swap width and height for the station */
   362 		/* Check if we need to swap width and height for the station */
   362 		if (st->train_tile != 0 && _m[st->train_tile].m5 & 1) {
   363 		if (st->train_tile != 0 && GetRailStationAxis(st->train_tile) != AXIS_X) {
   363 			swap_byte(&st->trainst_w, &st->trainst_h);
   364 			swap_byte(&st->trainst_w, &st->trainst_h);
   364 		}
   365 		}
   365 
   366 
   366 		/* Check if there is a bus or truck station, and convert to new format */
   367 		/* Check if there is a bus or truck station, and convert to new format */
   367 		if (st->bus_tile_obsolete != 0) {
   368 		if (st->bus_tile_obsolete != 0) {