src/npf.cpp
changeset 7928 63e18de69e50
parent 7922 a7e266f966d9
child 7970 7d6b9ab57081
equal deleted inserted replaced
7927:3a3289a049f9 7928:63e18de69e50
   600 	}
   600 	}
   601 
   601 
   602 	/* check correct rail type (mono, maglev, etc) */
   602 	/* check correct rail type (mono, maglev, etc) */
   603 	if (type == TRANSPORT_RAIL) {
   603 	if (type == TRANSPORT_RAIL) {
   604 		RailType dst_type = GetTileRailType(dst_tile);
   604 		RailType dst_type = GetTileRailType(dst_tile);
   605 		if (!HASBIT(aystar->user_data[NPF_RAILTYPES], dst_type))
   605 		if (!HasBit(aystar->user_data[NPF_RAILTYPES], dst_type))
   606 			return;
   606 			return;
   607 	}
   607 	}
   608 
   608 
   609 	/* Check the owner of the tile */
   609 	/* Check the owner of the tile */
   610 	if (!VehicleMayEnterTile((Owner)aystar->user_data[NPF_OWNER], dst_tile, TrackdirToExitdir(src_trackdir))) {
   610 	if (!VehicleMayEnterTile((Owner)aystar->user_data[NPF_OWNER], dst_tile, TrackdirToExitdir(src_trackdir))) {