mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 02:49:10 +00:00
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
This commit is contained in:
@@ -504,7 +504,8 @@ static SigSegState UpdateSignalsInBuffer(Owner owner)
|
||||
_tbdset.Add(tile, INVALID_DIAGDIR); // start from depot inside
|
||||
break;
|
||||
}
|
||||
/* FALL THROUGH */
|
||||
FALLTHROUGH;
|
||||
|
||||
case MP_STATION:
|
||||
case MP_ROAD:
|
||||
if ((TrackStatusToTrackBits(GetTileTrackStatus(tile, TRANSPORT_RAIL, 0)) & _enterdir_to_trackbits[dir]) != TRACK_BIT_NONE) {
|
||||
@@ -513,7 +514,8 @@ static SigSegState UpdateSignalsInBuffer(Owner owner)
|
||||
_tbdset.Add(tile + TileOffsByDiagDir(dir), ReverseDiagDir(dir));
|
||||
break;
|
||||
}
|
||||
/* FALL THROUGH */
|
||||
FALLTHROUGH;
|
||||
|
||||
default:
|
||||
/* jump to next tile */
|
||||
tile = tile + TileOffsByDiagDir(dir);
|
||||
|
Reference in New Issue
Block a user