src/npf.cpp
changeset 6480 767cfeae4dbf
parent 6338 0fb4f452873c
child 6298 c30fe89622df
child 6573 7624f942237f
equal deleted inserted replaced
6479:b228a94a1832 6480:767cfeae4dbf
   592 		}
   592 		}
   593 	}
   593 	}
   594 
   594 
   595 	/* check correct rail type (mono, maglev, etc) */
   595 	/* check correct rail type (mono, maglev, etc) */
   596 	if (type == TRANSPORT_RAIL) {
   596 	if (type == TRANSPORT_RAIL) {
   597 		RailType dst_type = GetTileRailType(dst_tile, TrackdirToTrack(src_trackdir));
   597 		RailType dst_type = GetTileRailType(dst_tile);
   598 		if (!HASBIT(aystar->user_data[NPF_RAILTYPES], dst_type))
   598 		if (!HASBIT(aystar->user_data[NPF_RAILTYPES], dst_type))
   599 			return;
   599 			return;
   600 	}
   600 	}
   601 
   601 
   602 	/* Check the owner of the tile */
   602 	/* Check the owner of the tile */