File diff r6763:51e34be35206 → r6764:88e9608d13b3
src/roadveh_cmd.cpp
Show inline comments
 
@@ -485,6 +485,8 @@ int32 CmdTurnRoadVeh(TileIndex tile, uin
 
		return CMD_ERROR;
 
	}
 

	
 
	if (GetDisallowedRoadDirections(v->tile) != DRD_NONE) return CMD_ERROR;
 

	
 
	if (IsTunnelTile(v->tile) && DirToDiagDir(v->direction) == GetTunnelDirection(v->tile)) return CMD_ERROR;
 
	if (IsBridgeTile(v->tile) && DirToDiagDir(v->direction) == GetBridgeRampDirection(v->tile)) return CMD_ERROR;
 

	
 
@@ -1415,6 +1417,9 @@ again:
 
					v->cur_speed = 0;
 
					return;
 
				}
 
			} else if (GetDisallowedRoadDirections(v->tile) != DRD_NONE) {
 
				v->cur_speed = 0;
 
				return;
 
			} else {
 
				tile = v->tile;
 
			}