src/oldloader.cpp
changeset 6130 f67231d82e91
parent 6128 46154e074b58
child 6222 50e47f803549
equal deleted inserted replaced
6129:a31e9d63bba2 6130:f67231d82e91
   310 	FOR_ALL_STATIONS(st) {
   310 	FOR_ALL_STATIONS(st) {
   311 		/* Check if we need to swap width and height for the station */
   311 		/* Check if we need to swap width and height for the station */
   312 		if (st->train_tile != 0 && GetRailStationAxis(st->train_tile) != AXIS_X) {
   312 		if (st->train_tile != 0 && GetRailStationAxis(st->train_tile) != AXIS_X) {
   313 			Swap(st->trainst_w, st->trainst_h);
   313 			Swap(st->trainst_w, st->trainst_h);
   314 		}
   314 		}
   315 
       
   316 		/* Check if there is a bus or truck station, and convert to new format */
       
   317 		if (st->bus_tile_obsolete != 0)   st->bus_stops   = new RoadStop(st->bus_tile_obsolete);
       
   318 		if (st->lorry_tile_obsolete != 0) st->truck_stops = new RoadStop(st->lorry_tile_obsolete);
       
   319 	}
   315 	}
   320 }
   316 }
   321 
   317 
   322 static void FixOldVehicles(void)
   318 static void FixOldVehicles(void)
   323 {
   319 {
   576 
   572 
   577 static const OldChunks station_chunk[] = {
   573 static const OldChunks station_chunk[] = {
   578 	OCL_SVAR(   OC_TILE, Station, xy ),
   574 	OCL_SVAR(   OC_TILE, Station, xy ),
   579 	OCL_VAR ( OC_UINT32,   1, &_old_town_index ),
   575 	OCL_VAR ( OC_UINT32,   1, &_old_town_index ),
   580 
   576 
   581 	OCL_SVAR(   OC_TILE, Station, bus_tile_obsolete ),
   577 	OCL_NULL( 4 ), // bus/lorry tile
   582 	OCL_SVAR(   OC_TILE, Station, lorry_tile_obsolete ),
       
   583 	OCL_SVAR(   OC_TILE, Station, train_tile ),
   578 	OCL_SVAR(   OC_TILE, Station, train_tile ),
   584 	OCL_SVAR(   OC_TILE, Station, airport_tile ),
   579 	OCL_SVAR(   OC_TILE, Station, airport_tile ),
   585 	OCL_SVAR(   OC_TILE, Station, dock_tile ),
   580 	OCL_SVAR(   OC_TILE, Station, dock_tile ),
   586 
   581 
   587 	OCL_VAR (  OC_UINT8,   1, &_old_platforms ),
   582 	OCL_VAR (  OC_UINT8,   1, &_old_platforms ),