rail_cmd.c
changeset 1927 4126e0e3e884
parent 1922 797081e56d13
child 1928 334bb0f31949
equal deleted inserted replaced
1926:68d60188a22f 1927:4126e0e3e884
   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);