(svn r5396) - Remove two fixed parameters

- Simplify an expresssion: c ? f(x) : f(y) -> f(c ? x : y)
This commit is contained in:
tron
2006-06-28 06:10:20 +00:00
parent 7e19740843
commit 473efb372e
3 changed files with 7 additions and 12 deletions

View File

@@ -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;
}