Changeset - r2605:905f17472de4
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2005-11-05 18:32:21
peter1138@openttd.org
(svn r3142) Remove a now invalid case fall-through and use helper function instead of map access.
1 file changed with 3 insertions and 3 deletions:
npf.c
3
3
0 comments (0 inline, 0 general)
npf.c
Show inline comments
 
@@ -417,12 +417,12 @@ static int32 NPFRoadPathCost(AyStar* as,
 
				cost = NPFTunnelCost(current);
 
				break;
 
			}
 
			/* Fall through if above if is false, it is a bridge
 
			 * then. We treat that as ordinary road */
 
			cost = NPF_TILE_LENGTH;
 
			break;
 
		case MP_STREET:
 
			cost = NPF_TILE_LENGTH;
 
			/* Increase the cost for level crossings */
 
			if ((_m[tile].m5 & 0xF0) == 0x10)
 
			if (IsLevelCrossing(tile))
 
				cost += _patches.npf_crossing_penalty;
 
			break;
 
		default:
0 comments (0 inline, 0 general)