|
@@ -970,13 +970,13 @@ static void TileLoop_Road(uint tile)
|
|
|
if (t->road_build_months != 0 &&
|
|
|
!(GetTileDist(t->xy, tile) >= 8 && grp==0) &&
|
|
|
(_map5[tile]==5 || _map5[tile]==10)) {
|
|
|
if (GetTileSlope(tile, NULL) == 0 && EnsureNoVehicle(tile) && CHANCE16(1,20)) {
|
|
|
_map2[tile] = ((_map2[tile]&7) <= 1) ? 6 : 7;
|
|
|
|
|
|
SndPlayTileFx(0x1F,tile);
|
|
|
SndPlayTileFx(SND_21_JACKHAMMER, tile);
|
|
|
CreateEffectVehicleAbove(
|
|
|
GET_TILE_X(tile) * 16 + 7,
|
|
|
GET_TILE_Y(tile) * 16 + 7,
|
|
|
0,
|
|
|
EV_ROADWORK);
|
|
|
MarkTileDirtyByTile(tile);
|
|
@@ -1083,13 +1083,13 @@ static const byte _roadveh_enter_depot_u
|
|
|
|
|
|
static uint32 VehicleEnter_Road(Vehicle *v, uint tile, int x, int y)
|
|
|
{
|
|
|
if ((_map5[tile] & 0xF0) == 0x10) {
|
|
|
if (v->type == VEH_Train && (_map5[tile] & 4) == 0) {
|
|
|
/* train crossing a road */
|
|
|
SndPlayVehicleFx(12, v);
|
|
|
SndPlayVehicleFx(SND_0E_LEVEL_CROSSING, v);
|
|
|
_map5[tile] |= 4;
|
|
|
MarkTileDirtyByTile(tile);
|
|
|
}
|
|
|
} else if ((_map5[tile]&0xF0) == 0x20){
|
|
|
if (v->type == VEH_Road && v->u.road.frame == 11) {
|
|
|
if (_roadveh_enter_depot_unk0[_map5[tile]&3] == v->u.road.state) {
|