src/npf.cpp
branchcpp_gui
changeset 6268 4b5241e5dd10
parent 6254 abc6ad7c035c
child 6298 c30fe89622df
child 6573 7624f942237f
equal deleted inserted replaced
6267:7c8ec33959b1 6268:4b5241e5dd10
   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 */