equal
deleted
inserted
replaced
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))) { |