(svn r5396) - Remove two fixed parameters
- Simplify an expresssion: c ? f(x) : f(y) -> f(c ? x : y)
This commit is contained in:
@@ -756,7 +756,7 @@ start_at:
|
||||
|
||||
/* Check the rail type only if the train is *NOT* on top of a bridge. */
|
||||
if (!(IsBridgeTile(tile) && IsBridgeMiddle(tile) && GetBridgeAxis(tile) == DiagDirToAxis(direction))) {
|
||||
if (IsTileType(tile, MP_STREET) ? !HASBIT(tpf->railtypes, GetRailTypeCrossing(tile)) : !HASBIT(tpf->railtypes, GetRailType(tile))) {
|
||||
if (!HASBIT(tpf->railtypes, IsTileType(tile, MP_STREET) ? GetRailTypeCrossing(tile) : GetRailType(tile))) {
|
||||
bits = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user