equal
deleted
inserted
replaced
372 _map5[tile] = 0x10 | (rail_bit == 1 ? 0x08 : 0x00); // level crossing |
372 _map5[tile] = 0x10 | (rail_bit == 1 ? 0x08 : 0x00); // level crossing |
373 } |
373 } |
374 break; |
374 break; |
375 } |
375 } |
376 |
376 |
377 if ((m5 & 0xF0) == 0x10 && (m5 & 0x08 ? 1 : 2) == rail_bit) |
377 if (IsLevelCrossing(tile) == 0x10 && (m5 & 0x08 ? 1 : 2) == rail_bit) |
378 return_cmd_error(STR_1007_ALREADY_BUILT); |
378 return_cmd_error(STR_1007_ALREADY_BUILT); |
379 /* FALLTHROUGH */ |
379 /* FALLTHROUGH */ |
380 |
380 |
381 default: |
381 default: |
382 ret = CheckRailSlope(tileh, rail_bit, 0, tile); |
382 ret = CheckRailSlope(tileh, rail_bit, 0, tile); |