equal
deleted
inserted
replaced
415 case MP_TUNNELBRIDGE: |
415 case MP_TUNNELBRIDGE: |
416 if (GB(_m[tile].m5, 4, 4) == 0) { |
416 if (GB(_m[tile].m5, 4, 4) == 0) { |
417 cost = NPFTunnelCost(current); |
417 cost = NPFTunnelCost(current); |
418 break; |
418 break; |
419 } |
419 } |
420 /* Fall through if above if is false, it is a bridge |
420 cost = NPF_TILE_LENGTH; |
421 * then. We treat that as ordinary road */ |
421 break; |
422 case MP_STREET: |
422 case MP_STREET: |
423 cost = NPF_TILE_LENGTH; |
423 cost = NPF_TILE_LENGTH; |
424 /* Increase the cost for level crossings */ |
424 /* Increase the cost for level crossings */ |
425 if ((_m[tile].m5 & 0xF0) == 0x10) |
425 if (IsLevelCrossing(tile)) |
426 cost += _patches.npf_crossing_penalty; |
426 cost += _patches.npf_crossing_penalty; |
427 break; |
427 break; |
428 default: |
428 default: |
429 break; |
429 break; |
430 } |
430 } |